Arrange the following blocks of code so that they check if the directory /sandbox/marvel/ironman exists. If the directory doesn't exist, it should be created. And if it does exist, the message Ironman exists! should be printed.
Conditional statements and test checks
Check for directory
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
mkdir /sandbox/marvel/ironman
echo "Ironman exists!"
if [ -d /sandbox/marvel/ironman ]; then
else
fi
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.