Skip to navigation
Catching a bash error with trap
08.09.21
#!/bin/bash function notify { echo "Something went wrong!" } trap notify ERR nonexisting_command
https://citizen428.net/blog/bash-error-handling-with-trap/
Reply
Anonymous
Information Epoch 1752112222
Save trees.
Home
Notebook
Contact us