Update build.func

This commit is contained in:
CanbiZ 2025-05-09 15:31:36 +02:00
parent a723b53cd4
commit 097a3c9f09

View File

@ -1334,22 +1334,22 @@ EOF
post_update_to_api "done" "none" post_update_to_api "done" "none"
} }
set_std_mode() { # set_std_mode() {
if [ "$VERBOSE" = "yes" ]; then # if [ "$VERBOSE" = "yes" ]; then
STD="" # STD=""
else # else
STD="silent" # STD="silent"
fi # fi
} # }
# Silent execution function # # Silent execution function
silent() { # silent() {
if [ "$VERBOSE" = "no" ]; then # if [ "$VERBOSE" = "no" ]; then
"$@" >/dev/null 2>&1 || return 1 # "$@" >/dev/null 2>&1 || return 1
else # else
"$@" || return 1 # "$@" || return 1
fi # fi
} # }
api_exit_script() { api_exit_script() {
exit_code=$? # Capture the exit status of the last executed command exit_code=$? # Capture the exit status of the last executed command