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
+1 -17
View File
@@ -1,19 +1,3 @@
{
"bookmarks": [
{
"fsPath": "$ROOTPATH$/test/test.sh",
"bookmarks": [
-1,
57,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
2
]
}
]
"bookmarks": []
}
+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