[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Török Edvin edwin at clamav.net
Sun Apr 4 01:07:53 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 5ff0fe419a5490cf60ca22c7bab07eec1423f961
Author: Török Edvin <edwin at clamav.net>
Date:   Tue Oct 13 21:04:19 2009 +0300

    Solaris's /bin/sh is not POSIX, don't use set -e for it.

diff --git a/unit_tests/check_common.sh b/unit_tests/check_common.sh
index ceb018e..17486ad 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`/..

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list