kaz-vagrant/clean.sh

39 lines
887 B
Bash
Raw Normal View History

2022-11-30 19:43:06 +01:00
#!/bin/bash
cd "$(dirname $0)"
while : ; do
read -p "Remove vagrant generated files (y/n)? " yn
case "${yn}" in
[yY]*|[Oo]* )
rm -f Vagrantfile
break;;
""|[Nn]* ) break;;
* ) echo "Please answer y/n.";;
esac
done
while : ; do
read -p "Remove proxy generated files (y/n)? " yn
case "${yn}" in
[yY]*|[Oo]* )
rm -f files/kaz/.apt-mirror-config files/kaz/.proxy-config
rm -f files/.apt-mirror-config files/.proxy-config files/.docker-config.json
break;;
""|[Nn]* ) break;;
* ) echo "Please answer y/n.";;
esac
done
while : ; do
read -p "Remove custom generated files (y/n)? " yn
case "${yn}" in
[yY]*|[Oo]* )
rm -f files/.customDocker.sh
rm -f files/kaz/.customDocker.sh files/local.sh
break;;
""|[Nn]* ) break;;
* ) echo "Please answer y/n.";;
esac
done