Commit 37c469c8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: add URL validation

parent e545622e
......@@ -1999,6 +1999,8 @@ get_urls()
grep -i -o -E 'href="(.+)"' | sed -e 's|&|\&|' | cut -d'"' -f2 | sed -e 's|^ *||g' -e 's| *$||g'
}
# Check that URL is provided (unless using -i|--input-file)
[ -z "$INPUTFILE" ] && [ -z "$1" ] && fatal "Error: URL is required"
if [ -n "$CHECKURL" ] ; then
#set_quiet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment