Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash check return of command not error

if command ; then
    echo "Command succeeded"
else
    echo "Command failed"
fi
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #bash #check #return #command #error
ADD COMMENT
Topic
Name
7+6 =