Skip to content

Commit 9490f8d

Browse files
authored
Merge pull request #74 from ClickHouse/sed
2 parents 2d05dd9 + b066013 commit 9490f8d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

generate-results.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
# Note: editing HTML with sed may look strange, but at least we avoid using node.js and npm, and that's good.
55

66
# This is needed on Mac OS. Do `brew install coreutils`.
7-
[ -n "$HOMEBREW_PREFIX" ] && PATH="${HOMEBREW_PREFIX}/opt/coreutils/libexec/gnubin:${PATH}"
8-
if command -v gsed >/dev/null 2>&1
9-
then
7+
if [[ "$(uname)" == "Darwin" ]]; then
8+
if ! command -v gsed >/dev/null 2>&1
9+
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'
15+
fi
1216
fi
1317

1418
(

0 commit comments

Comments
 (0)