Denna sida fungerar bättre med Javascript igång.
Startsida
Utforska
Hjälp
Logga in
jan
/
jans_shell_utils
Bevaka
1
Stjärnmärk
0
Förgrening
0
Kod
Ärenden
0
Pull-förfrågningar
0
Släpp
0
Aktiviteter
Bläddra i källkod
wrap
main
Jan Lehnardt
3 år sedan
förälder
dff8ebf05a
incheckning
4bd87a344c
1 ändrade filer
med
2 tillägg
och
1 borttagningar
Delad Vy
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
trap_error_example.sh
+ 2
- 1
trap_error_example.sh
Visa fil
@@ -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
Write
Förhandsgranska
Laddar…
Avbryt
Spara