From c90e1faf6a87e8ad0f362553dd1af8ac0d76ff61 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 30 Jul 2021 10:23:00 +0300 Subject: [PATCH] Feat(get-vbox-guestadd-extpack): Remove previously downloaded files --- get-vbox-guestadd-extpack | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/get-vbox-guestadd-extpack b/get-vbox-guestadd-extpack index 23c0f18..1387d8e 100755 --- a/get-vbox-guestadd-extpack +++ b/get-vbox-guestadd-extpack @@ -1,13 +1,17 @@ #!/bin/sh +set -e if [ -z "$1" ]; then echo "Usage: $0 version" >&2 exit 1 fi -cd "$HOME/VirtualBox VMs" && \ +cd "$HOME/VirtualBox VMs" +rm -f VBoxGuestAdditions_*.iso Oracle_VM_VirtualBox_Extension_Pack-*.vbox-extpack + ww "http://download.virtualbox.org/virtualbox/$1/VBoxGuestAdditions_$1.iso" \ - "http://download.virtualbox.org/virtualbox/$1/Oracle_VM_VirtualBox_Extension_Pack-$1.vbox-extpack" && + "http://download.virtualbox.org/virtualbox/$1/Oracle_VM_VirtualBox_Extension_Pack-$1.vbox-extpack" exec sudo VBoxManage extpack install --replace \ + --accept-license=33d7284dc4a0ece381196fda3cfe2ed0e1e8e7ed7f27b9a9ebc4ee22e24bd23c \ "Oracle_VM_VirtualBox_Extension_Pack-$1.vbox-extpack" -- 2.39.5