Change hook fail to warn.
This commit is contained in:
parent
7f4c294758
commit
e798f138bc
1 changed files with 6 additions and 1 deletions
|
@ -29,7 +29,12 @@ perror() {
|
||||||
}
|
}
|
||||||
|
|
||||||
err_trap() {
|
err_trap() {
|
||||||
perror "Error during execution of $EXEC_NAME."
|
LAST=$?
|
||||||
|
if [[ $LAST -lt 0 ]]; then
|
||||||
|
perror "Error during execution of $EXEC_NAME."
|
||||||
|
elif [[ $LAST -gt 0 ]]; then
|
||||||
|
pwarn "Hook $EXEC_NAME finished unsuccessfully."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
export -f pinfo pwarn perror
|
export -f pinfo pwarn perror
|
||||||
|
|
Loading…
Reference in a new issue