Skip to content

Commit

Permalink
added skip routine for digitalocean and vultr vagrant directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Mayfield committed May 1, 2018
1 parent 87f1e94 commit ba536d9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions vagrant_update_boxes.sh
Expand Up @@ -4,15 +4,18 @@

for i in $(find . -name Vagrantfile)
do
echo "Found Vagrantfile at: $i"
cd $(echo $i | sed 's/Vagrantfile//')
if ! [[ $i =~ (do|vultr)- ]]; then
echo "Found Vagrantfile at: $i"
cd $(echo $i | sed 's/Vagrantfile//')

boxname=$(grep "^ config.vm.box " Vagrantfile | awk -F "= " '{print $2}')
echo "Updating box: $boxname"
boxname=$(grep "^ config.vm.box " Vagrantfile | awk -F "= " '{print $2}')
echo "Updating box: $boxname"

vagrant box update
vagrant box update

cd - &> /dev/null
cd - &> /dev/null
echo "============================================================"
fi
done

#EOF

0 comments on commit ba536d9

Please sign in to comment.