11 · The Command Line
Exit Code
Did the command succeed?
The number a command returns when it finishes: 0 means success, anything else means a failure of some kind.
Concrete example
Scripts and CI check exit codes to know if a step passed.
Did the command succeed?
The number a command returns when it finishes: 0 means success, anything else means a failure of some kind.
Scripts and CI check exit codes to know if a step passed.