summaryrefslogtreecommitdiff
path: root/test/run
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-02-04 19:19:09 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-02-04 19:19:09 -0500
commitc5352f09a4e5722fd64b3638e0e3e014fd098036 (patch)
treebcfd68bbf2b4dbdb8d4abe905c0a41b8059a7037 /test/run
parent1719e6cd6cd6bccc095ac9d8e5211c929a36b863 (diff)
downloadfork-ledger-c5352f09a4e5722fd64b3638e0e3e014fd098036.tar.gz
fork-ledger-c5352f09a4e5722fd64b3638e0e3e014fd098036.tar.bz2
fork-ledger-c5352f09a4e5722fd64b3638e0e3e014fd098036.zip
Simplified an else clause in test/run
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/run b/test/run
index b0da1b6e..55eb39f3 100755
--- a/test/run
+++ b/test/run
@@ -36,10 +36,9 @@ elif [[ $output_only == false ]]; then
if [[ -f /tmp/expected.$$ && -f /tmp/received.$$ ]]; then
diff -w -U3 /tmp/expected.$$ /tmp/received.$$ && echo Test passed.
fi
-else
- if [[ -f /tmp/received.$$ ]]; then
- cat /tmp/received.$$
- fi
+
+elif [[ -f /tmp/received.$$ ]]; then
+ cat /tmp/received.$$
fi
/bin/rm -f /tmp/expected.$$ /tmp/received.$$