From 651809c32c60ec53cfcc1aba58dc91c5b11b3de6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 2 Mar 2018 22:39:47 +0000 Subject: [PATCH] Fix static analysis failures --- src/freedombone-controlpanel | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index 4ab07fd2..b238a8c8 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1054,7 +1054,7 @@ function create_keydrive_master { function create_keydrive_fragment { select_user - if [ ! $SELECTED_USERNAME ]; then + if [ ! "$SELECTED_USERNAME" ]; then return fi dialog --title $"USB Fragment Keydrive" \ @@ -1415,6 +1415,7 @@ function format_drive { function remove_backups { detect_usb_drive + # shellcheck disable=SC2154 dialog --title $"Remove backups from a USB drive $USB_DRIVE" \ --backtitle $"Freedombone Control Panel" \ --defaultno \