read -s -p "Create new directory? y/n: " response while [[ "$response" == "y" ]] do read -s -p "Enter the name of direcory: " name mkdir $name if [ $? -ne 0 ] then echo "Failed to create new directory $name" exit 1 fi read -s -p "Create another new directory? y/n: " response doneso how do i go about this?