From 9d15c76d773f807ba3aa7e6e3a6b3930f44a197a Mon Sep 17 00:00:00 2001 From: Oleg Kulachenko Date: Sat, 18 Apr 2026 16:37:45 +0300 Subject: [PATCH] Fix incorrect `sh` references in build.sh usage docs The script uses bash-specific features (arrays, [[ ]], shopt, ${@:2}), but the usage examples and synopsis in global_usage() all referenced `sh build.sh`, which would fail on a strict POSIX shell. Replace all occurrences with `bash build.sh` to match the shebang and actual requirements. Signed-off-by: Oleg Kulachenko --- build.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index 313c4c47..ac90c4b3 100755 --- a/build.sh +++ b/build.sh @@ -3,7 +3,7 @@ global_usage() { cat - < [target] +bash build.sh [target] Commands: help|usage|-h|--help: Shows this message. @@ -17,19 +17,19 @@ Commands: Examples: Build firmware for the "RAK_4631_repeater" device target -$ sh build.sh build-firmware RAK_4631_repeater +$ bash build.sh build-firmware RAK_4631_repeater Build all firmwares for device targets containing the string "RAK_4631" -$ sh build.sh build-matching-firmwares +$ bash build.sh build-matching-firmwares Build all companion firmwares -$ sh build.sh build-companion-firmwares +$ bash build.sh build-companion-firmwares Build all repeater firmwares -$ sh build.sh build-repeater-firmwares +$ bash build.sh build-repeater-firmwares Build all chat room server firmwares -$ sh build.sh build-room-server-firmwares +$ bash build.sh build-room-server-firmwares Environment Variables: DISABLE_DEBUG=1: Disables all debug logging flags (MESH_DEBUG, MESH_PACKET_LOGGING, etc.) @@ -39,11 +39,11 @@ Examples: Build without debug logging: $ export FIRMWARE_VERSION=v1.0.0 $ export DISABLE_DEBUG=1 -$ sh build.sh build-firmware RAK_4631_repeater +$ bash build.sh build-firmware RAK_4631_repeater Build with debug logging (default, uses flags from variant files): $ export FIRMWARE_VERSION=v1.0.0 -$ sh build.sh build-firmware RAK_4631_repeater +$ bash build.sh build-firmware RAK_4631_repeater EOF }