Deze website werkt beter met JavaScript.
Beginscherm
Verkennen
Help
Inloggen
jan
/
jans_shell_utils
Volgen
1
Ster
0
Vork
0
Code
Kwesties
0
Pull-aanvragen
0
Publicaties
0
Activiteit
Bladeren bron
wrap
main
Jan Lehnardt
3 jaren geleden
bovenliggende
dff8ebf05a
commit
4bd87a344c
1 gewijzigde bestanden
met
toevoegingen van 2
en
1 verwijderingen
Zij-aan-zij weergave
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
trap_error_example.sh
+ 2
- 1
trap_error_example.sh
Bestand weergeven
@@ -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
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan