Skip to content

Commit

Permalink
edit for shellcheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearran committed Dec 10, 2023
1 parent cfd94f2 commit 0e735be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/armbian-interface
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

}

Expand Down Expand Up @@ -116,4 +116,4 @@ show_menu(){
[[ $1 == "-o" ]] && show_message ;
[[ $1 == "-h" ]] && show_help ;
[[ $1 == "-p" ]] && show_popup ;
[[ -z "$@" ]] && show_help ;
[[ -z "$*" ]] && show_help ;

0 comments on commit 0e735be

Please sign in to comment.