Skip to content

Commit e6bf532

Browse files
committed
Fix small bug in ESP32 mkimage.sh when using the help option
Change the script to exit after printing the help, instead of erroneously reporting that the image was successfully created. Signed-off-by: Winford <[email protected]>
1 parent 983026c commit e6bf532

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ escript "@CMAKE_BINARY_DIR@/mkimage.erl" \
2525
--out "@CMAKE_BINARY_DIR@/atomvm-@[email protected]" \
2626
"$@"
2727

28+
if (test ${@} = "--help"); then
29+
echo ""
30+
exit 0;
31+
fi
32+
2833
echo "============================================="
2934

3035
echo ""

0 commit comments

Comments
 (0)