mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
Update core.func
This commit is contained in:
@@ -194,8 +194,10 @@ SILENT_LOGFILE="/tmp/silent.$$.log"
|
||||
|
||||
silent() {
|
||||
local cmd="$*"
|
||||
set +Eeuo pipefail
|
||||
"$@" >>"$SILENT_LOGFILE" 2>&1
|
||||
local rc=$?
|
||||
set -Eeuo pipefail
|
||||
if [[ $rc -ne 0 ]]; then
|
||||
BASH_COMMAND="$cmd"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user