command-list
Bash OR command list
Runs second command only after first fails. Returns status of last executed command.
Formal Syntax & Structure
bash syntaxbash
command1 || command2Return Value
exit status
Runs second command only after first fails. Returns status of last executed command.
Working Example
Example Snippetbash
false || printf '%s\n' fallback