diff --git a/misc/alpine-install.func b/misc/alpine-install.func index 6ee44f9..771868c 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -10,19 +10,19 @@ fi source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) load_functions -# Function to set STD mode based on verbosity -set_std_mode() { - if [ "$VERBOSE" = "yes" ]; then - STD="" - else - STD="silent" - fi -} +# # Function to set STD mode based on verbosity +# set_std_mode() { +# if [ "$VERBOSE" = "yes" ]; then +# STD="" +# else +# STD="silent" +# fi +# } -# Silent execution function -silent() { - "$@" >/dev/null 2>&1 -} +# # Silent execution function +# silent() { +# "$@" >/dev/null 2>&1 +# } # This function enables IPv6 if it's not disabled and sets verbose mode verb_ip6() { diff --git a/misc/core.func b/misc/core.func index 731a991..0d4e989 100644 --- a/misc/core.func +++ b/misc/core.func @@ -21,6 +21,7 @@ load_functions() { formatting icons default_vars + set_std_mode # add more } @@ -90,7 +91,6 @@ default_vars() { # ------------------------------------------------------------------------------ # Sets default verbose mode for script execution. # ------------------------------------------------------------------------------ -VERBOSE="${1:-no}" VERB=${var_verbose:-$VERBOSE} set_std_mode() { if [ "$VERB" = "yes" ]; then diff --git a/misc/install.func b/misc/install.func index eefe1f5..2a3f5a2 100644 --- a/misc/install.func +++ b/misc/install.func @@ -13,19 +13,19 @@ fi source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/core.func) load_functions -# Function to set STD mode based on verbosity -set_std_mode() { - if [ "$VERBOSE" = "yes" ]; then - STD="" - else - STD="silent" - fi -} +# # Function to set STD mode based on verbosity +# set_std_mode() { +# if [ "$VERBOSE" = "yes" ]; then +# STD="" +# else +# STD="silent" +# fi +# } -# Silent execution function -silent() { - "$@" >/dev/null 2>&1 -} +# # Silent execution function +# silent() { +# "$@" >/dev/null 2>&1 +# } # This function enables IPv6 if it's not disabled and sets verbose mode verb_ip6() {