From bf8ad37a250f3ea2342f49e803a1fbddef9ea7f8 Mon Sep 17 00:00:00 2001 From: De1337NY Date: Wed, 4 May 2022 23:59:36 -0400 Subject: [PATCH] Added error handling if missing arg1 added a check if argument was not included in runtime and provided proper syntax in error message --- bash/webrecon.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bash/webrecon.sh b/bash/webrecon.sh index ca03a5e..71234ee 100644 --- a/bash/webrecon.sh +++ b/bash/webrecon.sh @@ -1,5 +1,10 @@ #!/bin/bash +if [ ! $1 ]; then + echo "Syntax: ./webrecon.sh " + exit +fi + url=$1 if [ ! -d "$url" ];then mkdir $url