Jan Lehnardt hace 3 años
padre
commit
4bd87a344c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      trap_error_example.sh

+ 2
- 1
trap_error_example.sh Ver fichero

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



Cargando…
Cancelar
Guardar