Bash Vérifiez si le CD réussit
some_command
if [ $? -eq 0 ]; then
echo OK
else
echo FAIL
fi
AttractivePenguin
some_command
if [ $? -eq 0 ]; then
echo OK
else
echo FAIL
fi