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=51dc23db6ece60de03f8d2ff25332baff5aa86bc;hp=a01dc95af19fa304f63ed8cd4ebbd95c83cbb527;hpb=e2b55e71c010a499e7d242c66888f018442490a7;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. +