Fixing things reported by shellcheck

This commit is contained in:
Tyler Akins
2016-08-03 10:19:43 -05:00
parent 0cc1cef6e9
commit c6bbf89f84
2 changed files with 21 additions and 19 deletions

View File

@@ -1,14 +1,14 @@
#!/usr/bin/env bash
cd "$(dirname $0)"
cd "${0%/*}"
. ./mo
PASS=0
FAIL=0
for TEST in tests/*.expected; do
BASE="${TEST%.expected}"
MO_FALSE_IS_EMPTY=
export BASE="${TEST%.expected}"
export MO_FALSE_IS_EMPTY=
echo -n "$BASE ... "
@@ -25,10 +25,10 @@ for TEST in tests/*.expected; do
if [[ $? -ne 0 ]]; then
echo "FAIL"
FAIL=$(( $FAIL + 1 ))
FAIL=$(( FAIL + 1 ))
else
echo "ok"
PASS=$(( $PASS + 1 ))
PASS=$(( PASS + 1 ))
rm "${BASE}.diff"
fi
done