Update build.func
This commit is contained in:
parent
a723b53cd4
commit
097a3c9f09
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user