Skip to content

Commit cde3bea

Browse files
committed
Force GNU sed on macOS
1 parent a9d4bc0 commit cde3bea

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

generate-results.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55

66
# This is needed on Mac OS. Do `brew install coreutils`.
77
[ -n "$HOMEBREW_PREFIX" ] && PATH="${HOMEBREW_PREFIX}/opt/coreutils/libexec/gnubin:${PATH}"
8-
if command -v gsed >/dev/null 2>&1
8+
if ! command -v gsed >/dev/null 2>&1
99
then
10+
echo "On macOS, please install GNU sed through homebrew."
11+
exit 1
12+
else
1013
shopt -s expand_aliases
1114
alias sed='gsed'
1215
fi

0 commit comments

Comments
 (0)