Skip to content

Commit

Permalink
Merge pull request linuxboot#666 from MrChromebox/flash_gui-fixup
Browse files Browse the repository at this point in the history
flash-gui: set unset variable USB_FAILED
  • Loading branch information
kylerankin committed Jan 29, 2020
2 parents 4977650 + 132dcb2 commit bcf522c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initrd/bin/flash-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down

0 comments on commit bcf522c

Please sign in to comment.