diff options
author | Lukas Martini <lukas.martini@unionhost.de> | 2011-04-07 19:54:41 +0200 |
---|---|---|
committer | Lukas Martini <lukas.martini@unionhost.de> | 2011-04-07 19:54:41 +0200 |
commit | debbced1851e884354d6dbf68982199f85ad2c7c (patch) | |
tree | 75528b70b3c0078c7658b8f1e98806fef7dcdf78 /bin/runTests.sh | |
parent | de967c1cd5e186f19caacb35ff471f8aa62a877c (diff) | |
download | etherpad-lite-debbced1851e884354d6dbf68982199f85ad2c7c.zip |
Fixing scripts to run from both bin/ and /.
Diffstat (limited to 'bin/runTests.sh')
-rwxr-xr-x | bin/runTests.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/runTests.sh b/bin/runTests.sh index 68ebde89..f22004e3 100755 --- a/bin/runTests.sh +++ b/bin/runTests.sh @@ -6,5 +6,9 @@ type -P nodeunit &>/dev/null || { echo "Run: npm install nodeunit" >&2 exit 1 } - -nodeunit ../tests + +if [ -d "../bin" ]; then + cd "../" +fi + +nodeunit tests |