Update core.func
This commit is contained in:
parent
266d121e92
commit
f92479dfb0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user