bash try except 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
}