From 5ff0fe419a5490cf60ca22c7bab07eec1423f961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B6r=C3=B6k=20Edvin?= Date: Tue, 13 Oct 2009 21:04:19 +0300 Subject: [PATCH] Solaris's /bin/sh is not POSIX, don't use set -e for it. --- unit_tests/check_common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unit_tests/check_common.sh b/unit_tests/check_common.sh index ceb018e55..17486adb4 100644 --- a/unit_tests/check_common.sh +++ b/unit_tests/check_common.sh @@ -1,5 +1,9 @@ #!/bin/sh -set -e + +# Solaris's /bin/sh is not a POSIX shell, and +# it quits when cd fails, even if it is followed by a || +# So enable -e only on POSIX shells +(cd /nonexistentdir || true) && set -e WRAPPER=${WRAPPER-} TOP=`pwd`/..