Skip to content

Commit

Permalink
Update config.ng.functions.sh
Browse files Browse the repository at this point in the history
Added jq check with installation prompt, enhanced whiptail prompt with install instructions, and removed leftover line after moving checks to runtime
  • Loading branch information
Tearran authored Aug 30, 2024
1 parent d812dd2 commit 107ea77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/armbian-configng/config.ng.functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ module_options+=(
#
function set_runtime_variables(){

[[ -z "$DIALOG" ]] && echo "Please install whiptail" && exit 1 ;
[[ -z "$DIALOG" ]] && { echo "Please install whiptail using 'sudo apt install whiptail'"; exit 1; }
[[ -x "$(command -v jq)" ]] || { echo "Please install jq using 'sudo apt install jq'"; exit 1; }


DIALOG_CANCEL=1
DIALOG_ESC=255
Expand Down Expand Up @@ -283,8 +285,6 @@ module_options+=(
#
# Function to set the tui colors
#
[[ -x "$(command -v whiptail)" ]] && DIALOG="whiptail" || exit 1 ;

function set_colors() {
local color_code=$1

Expand Down

0 comments on commit 107ea77

Please sign in to comment.