Skip to content

Commit aaccfba

Browse files
committed
Make bashism conditional on the shell being bash
This avoids breakage due to 9643aa5 on shells other than bash.
1 parent b85743f commit aaccfba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hg-fast-export.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others.
44
# License: MIT <http://www.opensource.org/licenses/mit-license.php>
55

6-
set -o pipefail
6+
if [ -n "$BASH" ]; then
7+
set -o pipefail
8+
fi
79

810
ROOT="`dirname $0`"
911
REPO=""

0 commit comments

Comments
 (0)