trim everything after last slash in dir param

This commit is contained in:
Asif Bacchus 2020-06-20 03:39:35 -06:00
parent b70d591dac
commit 0f18374e9d

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