mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-07 19:34:26 +00:00
flash-gui: set unset variable USB_FAILED
Not setting USB_FAILED when call to mount-usb succeeds results in a spurious 'sh: 0 unknown operand' error printed to console. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
parent
497765038e
commit
132dcb2344
@ -7,7 +7,7 @@ set -e -o pipefail
|
||||
mount_usb(){
|
||||
# Mount the USB boot device
|
||||
if ! grep -q /media /proc/mounts ; then
|
||||
mount-usb "$CONFIG_USB_BOOT_DEV" || USB_FAILED=1
|
||||
mount-usb "$CONFIG_USB_BOOT_DEV" && USB_FAILED=0 || USB_FAILED=1
|
||||
if [ $USB_FAILED -ne 0 ]; then
|
||||
if [ ! -e "$CONFIG_USB_BOOT_DEV" ]; then
|
||||
whiptail --title 'USB Drive Missing' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user