Merge pull request #1493 from JonathonHall-Purism/flash_gui_sh_exit

initrd/bin/flash-gui.sh: Exit instead of errant return
This commit is contained in:
tlaurion 2023-09-05 16:24:21 -04:00 committed by GitHub
commit 446b45e4f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ while true; do
find /media ! -path '*/\.*' -type f \( -name '*.rom' -o -name '*.tgz' \) | sort > /tmp/filelist.txt
file_selector "/tmp/filelist.txt" "Choose the ROM to flash"
if [ "$FILE" == "" ]; then
return
exit 1
else
ROM=$FILE
fi