Skip to content

Commit 0de76dd

Browse files
authored
Update build.sh
1 parent 3513488 commit 0de76dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ if ! [ -x "$(command -v stat)" ]; then
3535
exit 1
3636
fi
3737

38+
awk="awk"
39+
if [[ "$OSTYPE" == "darwin"* ]]; then
40+
awk="gawk"
41+
fi
42+
43+
if ! [ -x "$(command -v $awk)" ]; then
44+
echo "ERROR: $awk is not installed! Please install $awk first."
45+
exit 1
46+
fi
47+
3848
mkdir -p dist
3949

4050
# update components from git

0 commit comments

Comments
 (0)