diff --git a/launch.sh b/launch.sh index 0045b9f..c5baaad 100644 --- a/launch.sh +++ b/launch.sh @@ -195,33 +195,33 @@ main() { allowed_platforms="tg5040 rg35xxplus" if ! echo "$allowed_platforms" | grep -q "$PLATFORM"; then show_message "$PLATFORM is not a supported platform" 2 - exit 1 + return 1 fi if [ ! -f "$progdir/bin/minui-keyboard-$PLATFORM" ]; then show_message "$progdir/bin/minui-keyboard-$PLATFORM not found" 2 - exit 1 + return 1 fi if [ ! -f "$progdir/bin/minui-list-$PLATFORM" ]; then show_message "$progdir/bin/minui-list-$PLATFORM not found" 2 - exit 1 + return 1 fi if ! cd "$progdir/bin"; then show_message "Failed to cd to $progdir/bin" 2 - exit 1 + return 1 fi chmod +x * if ! cd "$progdir"; then show_message "Failed to cd to $progdir" 2 - exit 1 + return 1 fi if [ "$PLATFORM" = "rg35xxplus" ]; then RGXX_MODEL="$(strings /mnt/vendor/bin/dmenu.bin | grep ^RG)" if [ "$RGXX_MODEL" = "RG28xx" ]; then show_message "Wifi not supported on RG28XX" 2 - exit 1 + return 1 fi fi