We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d05dd9 commit b066013Copy full SHA for b066013
generate-results.sh
@@ -4,11 +4,15 @@
4
# Note: editing HTML with sed may look strange, but at least we avoid using node.js and npm, and that's good.
5
6
# 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
+if [[ "$(uname)" == "Darwin" ]]; then
+ if ! command -v gsed >/dev/null 2>&1
+ then
10
+ echo "On macOS, please install GNU sed through homebrew."
11
+ exit 1
12
+ else
13
shopt -s expand_aliases
14
alias sed='gsed'
15
+ fi
16
fi
17
18
(
0 commit comments