Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / examples / bashisms / script_location.sh
index a01dc95af19fa304f63ed8cd4ebbd95c83cbb527..7fa942a6302f90daba31cd31c49a686c3ef4def4 100644 (file)
@@ -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.
+