5 if [ -d $HOME/.juju/environments ]; then
7 juju status &>>status.txt || true
8 if [ "$(grep -c "environment is not bootstrapped" status.txt )" -ge 1 ]; then
9 echo " environment is not bootstrapped ..."
11 echo " environment is bootstrapped ..."
12 juju destroy-environment demo-maas -y
14 rm -rf $HOME/.juju/.deployer-store-cache
16 rm -rf $HOME/.juju/environments
17 rm -rf $HOME/.juju/ssh