mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-25 06:07:34 +00:00
commit
8de7573c16
@ -400,7 +400,7 @@ function errtrap {
|
|||||||
echo "ERROR line $1: Command exited with status $es."
|
echo "ERROR line $1: Command exited with status $es."
|
||||||
}
|
}
|
||||||
|
|
||||||
trap 'errtrap $LINENO' ERR # is run whenever a command in the surrounding script or function exists with non-zero status
|
trap 'errtrap $LINENO' ERR # is run whenever a command in the surrounding script or function exits with non-zero status
|
||||||
|
|
||||||
function dbgtrap {
|
function dbgtrap {
|
||||||
echo "badvar is $badvar"
|
echo "badvar is $badvar"
|
||||||
|
Loading…
Reference in New Issue
Block a user