mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-03-01 13:45:54 +00:00
Update core.func
This commit is contained in:
@@ -98,13 +98,19 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
set_std_mode() {
|
set_std_mode() {
|
||||||
if [ "$VERBOSE" = "yes" ]; then
|
if [ "${VERBOSE:-no}" = "yes" ]; then
|
||||||
STD=""
|
STD=""
|
||||||
else
|
else
|
||||||
STD="silent"
|
STD="silent"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ -z "${VERBOSE+x}" ]; then
|
||||||
|
echo "DEBUG: VERBOSE is unset"
|
||||||
|
else
|
||||||
|
echo "DEBUG: VERBOSE (pre): '$VERBOSE'"
|
||||||
|
fi
|
||||||
|
|
||||||
# Silent execution function
|
# Silent execution function
|
||||||
silent() {
|
silent() {
|
||||||
"$@" >/dev/null 2>&1
|
"$@" >/dev/null 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user