aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-x%HOME%/.local/bin/vagrant-update-all-boxes.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/%HOME%/.local/bin/vagrant-update-all-boxes.sh b/%HOME%/.local/bin/vagrant-update-all-boxes.sh
index e433c16..06b2360 100755
--- a/%HOME%/.local/bin/vagrant-update-all-boxes.sh
+++ b/%HOME%/.local/bin/vagrant-update-all-boxes.sh
@@ -6,6 +6,7 @@
# Distributed under the MIT License.
set -o errexit -o nounset -o pipefail
+shopt -s inherit_errexit
dump() {
local msg
@@ -42,10 +43,13 @@ update_box_from_line() {
}
update_all_boxes() {
+ local output
+ output="$( vagrant box outdated --global | grep -F outdated )"
+
local line
while IFS= read -r line; do
update_box_from_line "$line"
- done < <( vagrant box outdated --global | grep -F outdated )
+ done <<< "$output"
}
clean_old_boxes() {