Update core.func
This commit is contained in:
parent
04b547ed84
commit
d097da2c7b
@ -91,12 +91,6 @@ default_vars() {
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Sets default verbose mode for script and os execution.
|
# Sets default verbose mode for script and os execution.
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
if [ -z "${VERBOSE+x}" ]; then
|
|
||||||
echo "DEBUG: VERBOSE is unset"
|
|
||||||
else
|
|
||||||
echo "DEBUG: VERBOSE (pre): '$VERBOSE'"
|
|
||||||
fi
|
|
||||||
|
|
||||||
set_std_mode() {
|
set_std_mode() {
|
||||||
if [ "${VERBOSE:-no}" = "yes" ]; then
|
if [ "${VERBOSE:-no}" = "yes" ]; then
|
||||||
STD=""
|
STD=""
|
||||||
@ -105,12 +99,6 @@ set_std_mode() {
|
|||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user