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
1 changed files with 1 additions and 1 deletions

2
sri
View File

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