handle null directory parameter

This commit is contained in:
Asif Bacchus
2020-06-20 03:39:03 -06:00
parent ffa5602dff
commit b70d591dac
2 changed files with 3 additions and 17 deletions
+2
View File
@@ -88,6 +88,8 @@ while [ $# -gt 0 ]; do
if [ -d "$2" ]; then
doDir=1
hashDir="${2%/}"
elif [ -z "$2" ]; then
displayError 1 "No directory specified."
else
displayError 1 "Directory '$2' does not exist."
fi