set WORKING_DIRECTORY explicitly to PWD if . is passed

This commit is contained in:
Gerhard Hoffmann 2023-06-05 15:34:46 +02:00
parent 2d1f11fd74
commit 5bca1f498b

View File

@ -43,7 +43,11 @@ while test $# -gt 0; do
;; ;;
--wdir | --wdi | --wd | --w | -wdir | -wdi | -wd | -w ) --wdir | --wdi | --wd | --w | -wdir | -wdi | -wd | -w )
shift shift
if [ "$1" = "." ]; then
WORKING_DIRECTORY="$PWD"
else
WORKING_DIRECTORY="$1" WORKING_DIRECTORY="$1"
fi
;; ;;
--help | -hel | --he | --h | '--?' | -help | -hel | -he | -h | '-?' ) --help | -hel | --he | --h | '--?' | -help | -hel | -he | -h | '-?' )
usage_and_exit 0 usage_and_exit 0