Skip to content

Commit 26d936b

Browse files
authored
Merge pull request #1372 from JonathonHall-Purism/fix-benign-script-errors
Fix benign script errors
2 parents e32fc91 + 1217cff commit 26d936b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

initrd/bin/kexec-select-boot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ user_select() {
292292

293293
if [ "$option_confirm" = "d" ]; then
294294
if [ ! -r "$TMP_KEY_DEVICES" ]; then
295-
# rerun primary boot loop to boot the new default option
296-
continue
295+
# continue below to boot the new default option
296+
true
297297
else
298298
echo "+++ Rebooting to start the new default option"
299299
sleep 2

initrd/bin/mount-usb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [ ! -d /media ]; then
2323
fi
2424

2525
list_usb_storage > /tmp/usb_block_devices
26-
if [ -z `cat /tmp/usb_block_devices` ]; then
26+
if [ -z "$(cat /tmp/usb_block_devices)" ]; then
2727
if [ -x /bin/whiptail ]; then
2828
whiptail $BG_COLOR --title 'USB Drive Missing' \
2929
--msgbox "Insert your USB drive and press Enter to continue." 16 60
@@ -33,7 +33,7 @@ if [ -z `cat /tmp/usb_block_devices` ]; then
3333
fi
3434
sleep 1
3535
list_usb_storage > /tmp/usb_block_devices
36-
if [ -z `cat /tmp/usb_block_devices` ]; then
36+
if [ -z "$(cat /tmp/usb_block_devices)" ]; then
3737
if [ -x /bin/whiptail ]; then
3838
whiptail $BG_COLOR_ERROR --title 'ERROR: USB Drive Missing' \
3939
--msgbox "USB Drive Missing! Aborting mount attempt.\n\nPress Enter to continue." 16 60

0 commit comments

Comments
 (0)