Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash check if cd successful

some_command
if [ $? -eq 0 ]; then
    echo OK
else
    echo FAIL
fi
 
PREVIOUS NEXT
Tagged: #bash #check #cd #successful
ADD COMMENT
Topic
Name
6+1 =