Skip to content

Commit 3a0c95a

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

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy