Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function myHandler() {
- ...
- }
- trap 'myHandler' DEBUG
- function myHandler() {
- if ! myCondition ; then
- abort the execution of BASH_COMMAND right here
- fi
- # Proceed with the execution of BASH_COMMAND
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement