initrd/bin/flash-gui.sh: Exit instead of errant return

Return is not valid outside of a function - exit instead.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-08-30 16:19:40 -04:00
parent 8272d33e7c
commit 003bec4fd4
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

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