test
This commit is contained in:
parent
7e8dd9deb6
commit
0028578712
@ -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() {
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user