Skip to content

Commit 03022b5

Browse files
committed
Fix
1 parent cde3bea commit 03022b5

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

generate-results.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +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
1010
echo "On macOS, please install GNU sed through homebrew."
1111
exit 1
12-
else
12+
else
1313
shopt -s expand_aliases
1414
alias sed='gsed'
15+
fi
1516
fi
1617

1718
(

0 commit comments

Comments
 (0)