Skip to content

Instantly share code, notes, and snippets.

View dnmvisser's full-sized avatar

Dick Visser dnmvisser

  • GÉANT
  • Amsterdam
View GitHub Profile
#!/bin/bash
OLDIFS=$IFS
export IFS=$'\n'
# Find all boxes which have updates
AVAILABLE_UPDATES=$(vagrant box outdated --global | grep outdated | tr -d "*'" | cut -d ' ' -f 2 | sort | uniq 2>/dev/null)
if [[ ${#AVAILABLE_UPDATES[@]} -ne 0 ]]; then