Skip to content

Commit 9749955

Browse files
authored
Update config.sh
1 parent 99b575c commit 9749955

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/config.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ export SED="sed"
8686
export SSTAT="stat -c %s"
8787

8888
if [[ "$AR_OS" == "macos" ]]; then
89+
if ! [ -x "$(command -v gsed)" ]; then
90+
echo "ERROR: gsed is not installed! Please install gsed first. ex. brew install gsed"
91+
exit 1
92+
fi
93+
if ! [ -x "$(command -v gawk)" ]; then
94+
echo "ERROR: gawk is not installed! Please install gawk first. ex. brew install gawk"
95+
exit 1
96+
fi
8997
export SED="gsed"
9098
export SSTAT="stat -f %z"
9199
fi

0 commit comments

Comments
 (0)