Make bashism conditional on the shell being bash

This avoids breakage due to 9643aa5d on shells other than bash.
This commit is contained in:
Frej Drejhammar
2013-09-15 12:26:43 +02:00
parent b85743f67e
commit aaccfba9a0

View File

@@ -3,7 +3,9 @@
# Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others. # Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others.
# License: MIT <http://www.opensource.org/licenses/mit-license.php> # License: MIT <http://www.opensource.org/licenses/mit-license.php>
set -o pipefail if [ -n "$BASH" ]; then
set -o pipefail
fi
ROOT="`dirname $0`" ROOT="`dirname $0`"
REPO="" REPO=""