Test on exit status of a command
suggest changeExit status 0 means success. Any other exit status means failure.
To test the exit status of a command:
if command; then
echo 'success'
else
echo 'failure'
fi
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents