From 30d0b807b87883103124d3db999278d6dde077ab Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Fri, 16 May 2025 11:01:09 +0200 Subject: [PATCH] Refactor config_file function to improve variable expansion handling for SSH and VERBOSE checks --- misc/build.func | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/misc/build.func b/misc/build.func index fc3f98b..5eef0b4 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1226,8 +1226,7 @@ config_file() { fi echo -e "${VLANTAG}${BOLD}${DGN}Vlan: ${BGN}$VLAN1${CL}" else - #exit_script - echo "test" + exit_script fi fi @@ -1248,7 +1247,7 @@ config_file() { fi fi - if [[ -n "${SSH}" ]]; then + if [[ -n "${SSH-}" ]]; then if [[ "$SSH" == "yes" ]]; then echo -e "${ROOTSSH}${BOLD}${DGN}Root SSH Access: ${BGN}$SSH${CL}" if [[ ! -z "$SSH_AUTHORIZED_KEY" ]]; then @@ -1280,7 +1279,7 @@ config_file() { fi fi - if [[ -n "$VERBOSE" ]]; then + if [[ -n "${VERBOSE-}" ]]; then if [[ "$VERBOSE" == "yes" ]]; then echo -e "${SEARCH}${BOLD}${DGN}Verbose Mode: ${BGN}$VERBOSE${CL}" elif [[ "$VERBOSE" == "no" ]]; then