Skip to content

Commit e8fd731

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 0d8184c commit e8fd731

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010
- Added Erlang distribution over serial (uart)
1111

12+
### Fixed
13+
- Fixed bug in ESP32 mkimage.sh leading to non-fatal "unary operator expected" error
14+
1215
## [0.7.0-alpha.1] - 2026-04-06
1316

1417
### Added

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)