trim everything after last slash in dir param
This commit is contained in:
parent
b70d591dac
commit
0f18374e9d
2
sri
2
sri
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user