Jan Lehnardt pirms 1 gada
vecāks
revīzija
4bd87a344c
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      trap_error_example.sh

+ 2
- 1
trap_error_example.sh Parādīt failu

@@ -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



Notiek ielāde…
Atcelt
Saglabāt