diff --git a/trap_error_example.sh b/trap_error_example.sh index dd10dcc..8a0aeef 100644 --- a/trap_error_example.sh +++ b/trap_error_example.sh @@ -1,4 +1,5 @@ -# if you run a script with -e that produces state that you want to clean up if anything goes wrong in your script, this helps: +# if you run a script with -e that produces state that you want to clean up if +# anything goes wrong in your script, this helps: trap 'handle_error' ERR