mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-10-30 00:24:06 -07:00
Update bash.sh
This commit is contained in:
1 parent
3e7c440853
commit
2ef26d3c39
1 file changed
+1
-1
+1
-1
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user