From: Oleg Broytman Date: Fri, 30 Jul 2021 07:23:00 +0000 (+0300) Subject: Feat(get-vbox-guestadd-extpack): Remove previously downloaded files X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=vbox-scripts.git Feat(get-vbox-guestadd-extpack): Remove previously downloaded files --- 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"