commit | 9b3739a553c20621d45dab10490a2b1741998588 | [log] [tgz] |
---|---|---|
author | Gavin Howard <yzena.tech@gmail.com> | Thu Feb 15 15:02:37 2018 -0700 |
committer | Gavin Howard <yzena.tech@gmail.com> | Tue Aug 28 17:10:23 2018 -0600 |
tree | 43ebfd46750a7ce6ce4185973d79c6eaa36bc5db | |
parent | 26f9d99faab22886c0dbc979fb0efafe4be5e3bc [diff] |
Make all.sh less prone to error
diff --git a/tests/all.sh b/tests/all.sh index 4771853..5cb2836 100755 --- a/tests/all.sh +++ b/tests/all.sh
@@ -1,17 +1,13 @@ #! /bin/sh +script="$0" + +testdir=$(dirname "$script") + if [ "$#" -lt 1 ]; then - bc="../bc" - testdir="." + bc="$testdir/../bc" else - bc="$1" - - if [ "$#" -lt 2]; then - testdir="." - else - testdir="$2" - fi fi set -e