Skip to content

Commit ceebc17

Browse files
committed
busybox: restore mac/linux bash compat.
previous commit was merged too fast. Change-Id: I2573ce6074e988bae0cd2157fcdf1269f6b1ac99
1 parent 25b92aa commit ceebc17

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/gen_build_files.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@ chk() { status "CHK" "$@"; }
2121
# features in this script, so this uses gsed and warns the user if
2222
# it does not exist.
2323
UNAME=$(uname -sm)
24-
if [[ $UNAME == *Darwin* ]] || [[ $UNAME == *Macintosh* ]]; then
24+
case "$UNAME" in
25+
*Darwin*|*Macintosh*)
2526
SED_IMPL=$(which gsed)
2627
if [ $? != 0 ]; then
2728
echo "GNU sed is required for Darwin builds, please install and add 'gsed' to the path"
2829
exit 1;
2930
fi
30-
else
31+
;;
32+
*)
3133
SED_IMPL=sed
32-
fi
34+
esac
3335

3436
generate()
3537
{

0 commit comments

Comments
 (0)