bash catch error handling code example
Example: bash try catch
{
# Try
} || {
# Executed when above fails
}
{
# Do stuff
} && {
# Only executed when above worked
}
{
# Try
} || {
# Executed when above fails
}
{
# Do stuff
} && {
# Only executed when above worked
}