Ver código fonte

Fix static analysis failures

Bob Mottram 7 anos atrás
pai
commit
651809c32c
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      src/freedombone-controlpanel

+ 2
- 1
src/freedombone-controlpanel Ver arquivo

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