Update core.func
This commit is contained in:
parent
f0f3032824
commit
2b22c47976
@ -189,7 +189,6 @@ set_std_mode() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Silent execution function
|
|
||||||
SILENT_LOGFILE="/tmp/silent.$$.log"
|
SILENT_LOGFILE="/tmp/silent.$$.log"
|
||||||
|
|
||||||
silent() {
|
silent() {
|
||||||
@ -202,8 +201,10 @@ silent() {
|
|||||||
|
|
||||||
if [[ $rc -ne 0 ]]; then
|
if [[ $rc -ne 0 ]]; then
|
||||||
BASH_COMMAND="$cmd"
|
BASH_COMMAND="$cmd"
|
||||||
return $rc
|
error_handler "$rc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
return $rc
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if the shell is using bash
|
# Check if the shell is using bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user