bash
- 6 ответов
- 0 вопросов
3
Вклад в тег
#!/bin/bash
while true; do
echo -n "Please enter an folder -> "
read folderdcheck
if [ ! -d "$folderdcheck" ]; then
echo "$folderdcheck is not exist."
mkdir -p $folderdcheck
echo "$folderdcheck is created."
break
else
echo "$folderdcheck exist."
fi
done
echo "Program terminated."