Bash versuchen, Fang zu fangen

{
# Try
} || {
# Executed when above fails
}
{
# Do stuff
} && {
# Only executed when above worked
}
Pi3141