Skip to content

Commit

Permalink
Merge pull request #28 from armbian/27-fix-shell-check-errors
Browse files Browse the repository at this point in the history
fix for shellcheck error
  • Loading branch information
Tearran authored Dec 12, 2023
2 parents cfd94f2 + 0e735be commit ca14dbb
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 ca14dbb

Please sign in to comment.