5 if [ -d "~/.juju/environemnts" ]; then
6 juju status &>status.txt || true
7 if [ "$(grep -c "environment is not bootstrapped" status.txt )" -ge 1 ]; then
8 echo " environment is not bootstrapped ..."
10 echo " environment is bootstrapped ..."
11 juju destroy-environment demo-maas -y
13 rm -rf ~/.juju/.deployer-store-cache
15 rm -rf ~/.juju/environments