projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated readme
[feisty_meow.git]
/
examples
/
bashisms
/
script_location.sh
diff --git
a/examples/bashisms/script_location.sh
b/examples/bashisms/script_location.sh
index a01dc95af19fa304f63ed8cd4ebbd95c83cbb527..7fa942a6302f90daba31cd31c49a686c3ef4def4 100644
(file)
--- 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 )"
# 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.
+