This commit is contained in:
CanbiZ 2025-05-09 15:19:32 +02:00
parent 7e8dd9deb6
commit 0028578712
3 changed files with 25 additions and 25 deletions

View File

@ -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() {

View File

@ -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

View File

@ -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() {