X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fshunit%2Fexample_shunit_test.sh;h=ce84616c98f4a66c7ca1a8af52b95e67238ab936;hb=350c5e348c3263a4d48307057e2de34166a53b04;hp=e33b9c3881f954f41cf42d6bf86abf165d9cac13;hpb=4db21103d93decfe3d1d9723f687566a32d7ec63;p=feisty_meow.git diff --git a/scripts/shunit/example_shunit_test.sh b/scripts/shunit/example_shunit_test.sh index e33b9c38..ce84616c 100755 --- a/scripts/shunit/example_shunit_test.sh +++ b/scripts/shunit/example_shunit_test.sh @@ -3,8 +3,9 @@ # An example of using shunit2. # # Author: Chris Koeritz +# license gnu gpl v3 -export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. +export WORKDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )" # obtain the script's working directory. if [[ ! "$0" =~ ^/.* ]]; then # re-run the script with an absolute path if it didn't start out that way; otherwise, # shunit is not happy with finding the script.