#!/bin/bash -e trap "echo ERROR HANDLING HERE." ERR echo "Starting" asdfasdf echo "End"
And when you run it:
Starting piet.sh: line 5: asdfasdf: command not found ERROR HANDLING HERE. End
Smokes your problems, coughs fresh air.
#!/bin/bash -e trap "echo ERROR HANDLING HERE." ERR echo "Starting" asdfasdf echo "End"
And when you run it:
Starting piet.sh: line 5: asdfasdf: command not found ERROR HANDLING HERE. End
© 2024 BigSmoke
Theme by Anders Noren — Up ↑
Recent Comments