aboutsummaryrefslogtreecommitdiffstats
path: root/tests/include.sh
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-05-25 17:18:31 +0200
committerTharre <tharre3@gmail.com>2015-05-25 17:18:31 +0200
commit79f3225ea4aea93ea963b8b41ecd518b9fd20eea (patch)
tree0849eeb8b080f06810a2aed59a80a9468c6b92d8 /tests/include.sh
parentc7712dfd7bf2734e339096d3274f5b0bef2b4335 (diff)
downloadredo-79f3225ea4aea93ea963b8b41ecd518b9fd20eea.tar.gz
redo-79f3225ea4aea93ea963b8b41ecd518b9fd20eea.tar.xz
redo-79f3225ea4aea93ea963b8b41ecd518b9fd20eea.zip
Fix some sh compatibility problems
Diffstat (limited to 'tests/include.sh')
-rw-r--r--tests/include.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/include.sh b/tests/include.sh
index 7052585..317ab52 100644
--- a/tests/include.sh
+++ b/tests/include.sh
@@ -1,7 +1,9 @@
assert() {
- if source /dev/stdin; then
+ set +e
+ if . /dev/stdin; then
echo "PASS: $1" >&2
else
echo "FAIL: $1" >&2
fi
+ set -e
}