-
Lets understand Conditional-Logic
-
To Check the status of the rocket use below command:
$ rocket-status lunar-mission
-
To debug the status of the rocket.
$ rocket-debug lunar-mission
-
if
is defined asif [ $rocket_status = "failed" ] then rocket-debug $mission_name fi
-
elif
condition is defined asif [ $rocket_status = "failed" ] then rocket-debug $mission_name elif [ $rocket_status = "success" ] then echo "This is successful" fi
-
else
is written asif [ -d "/home/bob/caleston" ] then echo "Directory exists" else echo "Directory not found"
-