commit bba596931f5de913c047cc28ce2f2378fb4ac96a
parent 88108151e735e70d6e3df0e8b5c29d135880fdaa
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Fri, 17 May 2019 20:26:22 +0200
checklinks: quit if run incorrectly
Former-commit-id: ae6dbc8d17b6047f17768dd8610304611e01b0ee
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/scripts/checklinks b/scripts/checklinks
@@ -5,6 +5,7 @@ if ! command -v wget &> /dev/null; then
elif [ $# -ne 2 ]; then
echo "Usage:"
echo "checklinks [URL] [LOGFILE]"
+ exit 1
fi
flags=(--spider --recursive --no-directories --no-verbose --page-requisites --level inf --wait 2 -e robots=off)