浏览代码

Fix static analysis failures

Bob Mottram 7 年前
父节点
当前提交
651809c32c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/freedombone-controlpanel

+ 2
- 1
src/freedombone-controlpanel 查看文件

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 \