Update core.func
This commit is contained in:
parent
0028578712
commit
35213c2ce3
@ -91,9 +91,8 @@ default_vars() {
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Sets default verbose mode for script execution.
|
# Sets default verbose mode for script execution.
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
VERB=${var_verbose:-$VERBOSE}
|
|
||||||
set_std_mode() {
|
set_std_mode() {
|
||||||
if [ "$VERB" = "yes" ]; then
|
if [ "$VERBOSE" = "yes" ]; then
|
||||||
STD=""
|
STD=""
|
||||||
else
|
else
|
||||||
STD="silent"
|
STD="silent"
|
||||||
@ -102,11 +101,7 @@ set_std_mode() {
|
|||||||
|
|
||||||
# Silent execution function
|
# Silent execution function
|
||||||
silent() {
|
silent() {
|
||||||
if [ "$VERB" = "no" ]; then
|
"$@" >/dev/null 2>&1
|
||||||
"$@" >/dev/null 2>&1 || return 1
|
|
||||||
else
|
|
||||||
"$@" || return 1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user