Selaa lähdekoodia

Fix static analysis failures

Bob Mottram 7 vuotta sitten
vanhempi
commit
651809c32c
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      src/freedombone-controlpanel

+ 2
- 1
src/freedombone-controlpanel Näytä tiedosto

@@ -1054,7 +1054,7 @@ function create_keydrive_master {
1054 1054
 
1055 1055
 function create_keydrive_fragment {
1056 1056
     select_user
1057
-    if [ ! $SELECTED_USERNAME ]; then
1057
+    if [ ! "$SELECTED_USERNAME" ]; then
1058 1058
         return
1059 1059
     fi
1060 1060
     dialog --title $"USB Fragment Keydrive" \
@@ -1415,6 +1415,7 @@ function format_drive {
1415 1415
 
1416 1416
 function remove_backups {
1417 1417
     detect_usb_drive
1418
+    # shellcheck disable=SC2154
1418 1419
     dialog --title $"Remove backups from a USB drive $USB_DRIVE" \
1419 1420
            --backtitle $"Freedombone Control Panel" \
1420 1421
            --defaultno \