소스 검색

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 \