From 0e735bed1d938a6a78a19709d5b95c9860f902fa Mon Sep 17 00:00:00 2001 From: Joey Turner Date: Sun, 10 Dec 2023 08:58:43 +0000 Subject: [PATCH] edit for shellcheck error --- bin/armbian-interface | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/armbian-interface b/bin/armbian-interface index ff095fdc0..5f6e27c12 100755 --- a/bin/armbian-interface +++ b/bin/armbian-interface @@ -36,7 +36,7 @@ # ## DIRECTORY variable to the absolute path of the script's directory -directory="$(dirname "$(readlink -f "$0")")" +# directory="$(dirname "$(readlink -f "$0")")" filename=$(basename "${BASH_SOURCE[0]}") ## DIALOG variable to the absolute path of the script's directory @@ -70,7 +70,7 @@ show_message(){ # Display the "OK" message box with the input data [[ $DIALOG != "bash" ]] && $DIALOG --title "Message Box" --msgbox "$input" 0 0 [[ $DIALOG == "bash" ]] && echo -e "$input" - [[ $DIALOG == "bash" ]] && read -p "Press [Enter] to continue..." ; echo "" ; exit 1 + [[ $DIALOG == "bash" ]] && read -p -r "Press [Enter] to continue..." ; echo "" ; exit 1 } @@ -116,4 +116,4 @@ show_menu(){ [[ $1 == "-o" ]] && show_message ; [[ $1 == "-h" ]] && show_help ; [[ $1 == "-p" ]] && show_popup ; -[[ -z "$@" ]] && show_help ; +[[ -z "$*" ]] && show_help ;