From 35213c2ce3e35d8eef21fa3a95e4dccfb52bc5b1 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 9 May 2025 15:24:43 +0200 Subject: [PATCH] Update core.func --- misc/core.func | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/misc/core.func b/misc/core.func index 0d4e989..a1e5c2e 100644 --- a/misc/core.func +++ b/misc/core.func @@ -91,9 +91,8 @@ default_vars() { # ------------------------------------------------------------------------------ # Sets default verbose mode for script execution. # ------------------------------------------------------------------------------ -VERB=${var_verbose:-$VERBOSE} set_std_mode() { - if [ "$VERB" = "yes" ]; then + if [ "$VERBOSE" = "yes" ]; then STD="" else STD="silent" @@ -102,11 +101,7 @@ set_std_mode() { # Silent execution function silent() { - if [ "$VERB" = "no" ]; then - "$@" >/dev/null 2>&1 || return 1 - else - "$@" || return 1 - fi + "$@" >/dev/null 2>&1 } # ------------------------------------------------------------------------------