set WORKING_DIRECTORY explicitly to PWD if . is passed
This commit is contained in:
parent
2d1f11fd74
commit
5bca1f498b
@ -43,7 +43,11 @@ while test $# -gt 0; do
|
||||
;;
|
||||
--wdir | --wdi | --wd | --w | -wdir | -wdi | -wd | -w )
|
||||
shift
|
||||
WORKING_DIRECTORY="$1"
|
||||
if [ "$1" = "." ]; then
|
||||
WORKING_DIRECTORY="$PWD"
|
||||
else
|
||||
WORKING_DIRECTORY="$1"
|
||||
fi
|
||||
;;
|
||||
--help | -hel | --he | --h | '--?' | -help | -hel | -he | -h | '-?' )
|
||||
usage_and_exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user