mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-20 17:22:53 +00:00
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:
parent
8272d33e7c
commit
003bec4fd4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user