using THISDIR instead of WORKDIR
[feisty_meow.git] / scripts / shunit / example_shunit_test.sh
index 17b3dd89509b1b45424654a679748e7aa58abc10..8931aef130e2e904ef09bc3cf977ca511f849ac6 100644 (file)
@@ -5,13 +5,13 @@
 # Author: Chris Koeritz
 # license gnu gpl v3
 
-export WORKDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )"  # obtain the script's working directory.
+export THISDIR="$( \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.
-  exec "$WORKDIR/$(basename $0)" $*
+  exec "$THISDIR/$(basename $0)" $*
 fi
-cd $WORKDIR
+cd $THISDIR
 
 oneTimeSetUp()
 {