Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash try catch

{
# Try
} || {
# Executed when above fails
}
{
# Do stuff
} && {
# Only executed when above worked
}
 
PREVIOUS NEXT
Tagged: #bash #catch
ADD COMMENT
Topic
Name
5+5 =