From 0f21fefe70256ec2dbbf53deb7fe03eeeb38dc2a Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 9 May 2025 15:53:47 +0200 Subject: [PATCH] Update core.func --- misc/core.func | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/misc/core.func b/misc/core.func index 2c2a5d5..cfde492 100644 --- a/misc/core.func +++ b/misc/core.func @@ -91,9 +91,11 @@ default_vars() { # ------------------------------------------------------------------------------ # Sets default verbose mode for script and os execution. # ------------------------------------------------------------------------------ -echo "DEBUG: VERBOSE: '$VERBOSE'" -VERBOSE="${1:-no}" -echo "DEBUG: VERBOSE: '$VERBOSE'" +if [ -z "${VERBOSE+x}" ]; then + echo "DEBUG: VERBOSE is unset" +else + echo "DEBUG: VERBOSE (pre): '$VERBOSE'" +fi set_std_mode() { if [ "$VERBOSE" = "yes" ]; then