X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=examples%2Fbashisms%2Fscript_location.sh;fp=examples%2Fbashisms%2Fscript_location.sh;h=7fa942a6302f90daba31cd31c49a686c3ef4def4;hb=7b39f7e279005c8466ef508220a532ce2aa4abf8;hp=a01dc95af19fa304f63ed8cd4ebbd95c83cbb527;hpb=3fbd372b35b15a19fb171d5ae34294ff7b1e6485;p=feisty_meow.git diff --git a/examples/bashisms/script_location.sh b/examples/bashisms/script_location.sh index a01dc95a..7fa942a6 100644 --- a/examples/bashisms/script_location.sh +++ b/examples/bashisms/script_location.sh @@ -5,3 +5,6 @@ # personal aliases or functions disrupting the results. ORIGINATING_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )" +# another slightly tighter version: +export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. +