From 4bd87a344c6a89000911906c0038c0a3e71fde92 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Sun, 18 Dec 2022 12:53:21 +0100 Subject: [PATCH] wrap --- trap_error_example.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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