Check Exit Code Of A Command Bash

[Solved] Check Exit Code Of A Command Bash | Erlang - Code Explorer | yomemimo.com
Question : check exit code of a command bash

Answered by : titus-kemboi-cheserem

if [ $? -eq 1 ]
then echo "blah blah blah"
fi

Source : https://stackoverflow.com/questions/26675681/how-to-check-the-exit-status-using-an-if-statement | Last Update : Wed, 14 Sep 22

Answers related to check exit code of a command bash

Code Explorer Popular Question For Erlang