undo dir param remove everything after last slash

This commit is contained in:
Asif Bacchus 2020-06-20 04:13:24 -06:00
parent 0f18374e9d
commit 50b40c87e1

2
sri
View File

@ -87,7 +87,7 @@ while [ $# -gt 0 ]; do
# verify directory exists # verify directory exists
if [ -d "$2" ]; then if [ -d "$2" ]; then
doDir=1 doDir=1
hashDir="${2%/*}" hashDir="${2%/}"
elif [ -z "$2" ]; then elif [ -z "$2" ]; then
displayError 1 "No directory specified." displayError 1 "No directory specified."
else else