Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

check exit code of a command bash

if [ $? -eq 1 ] 
then
    echo "blah blah blah"
fi
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #exit #code #command #bash
ADD COMMENT
Topic
Name
5+8 =