Skip to content

Commit 8aa89af

Browse files
committed
ESP32: fix bug in mkimage.sh
Fix the non-fatal `./build/mkimage.sh: line 38: [: =: unary operator expected` error that can occur when no options are passed. Signed-off-by: Winford <winford@object.stream>
1 parent bc2199c commit 8aa89af

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Stop using deprecated `term_from_int32` on STM32 platform
1414
- Stop using deprecated `term_from_int32` on RP2 platform
1515
- Stop using deprecated `term_from_int32` on ESP32 platform
16+
- Fixed bug in ESP32 mkimage.sh leading to non-fatal "unary operator expected" error
1617

1718
## [0.7.0-alpha.1] - 2026-04-06
1819

src/platforms/esp32/tools/mkimage.sh.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ fail()
3535
exit 1
3636
}
3737

38-
if [ "${@}" = "--help" ]; then
38+
opts="${@}"
39+
40+
if [ "${opts}" = "--help" ]; then
3941
escript "@CMAKE_BINARY_DIR@/mkimage.erl" --help
4042
exit 0
4143
fi

0 commit comments

Comments
 (0)