Skip to content

Commit 3a0c95a

Browse files
committed
Add check on MacOS for gawk and gsed
Fixes: #94
1 parent 296fda5 commit 3a0c95a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: tools/config.sh

+8
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ export SED="sed"
7676
export SSTAT="stat -c %s"
7777

7878
if [[ "$AR_OS" == "macos" ]]; then
79+
if ! [ -x "$(command -v gsed)" ]; then
80+
echo "ERROR: gsed is not installed! Please install gsed first. ex. brew install gsed"
81+
exit 1
82+
fi
83+
if ! [ -x "$(command -v gawk)" ]; then
84+
echo "ERROR: gawk is not installed! Please install gawk first. ex. brew install gawk"
85+
exit 1
86+
fi
7987
export SED="gsed"
8088
export SSTAT="stat -f %z"
8189
fi

0 commit comments

Comments
 (0)