]> git.phdru.name Git - vbox-scripts.git/commitdiff
Feat(get-vbox-guestadd-extpack): Remove previously downloaded files master
authorOleg Broytman <phd@phdru.name>
Fri, 30 Jul 2021 07:23:00 +0000 (10:23 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 30 Jul 2021 07:25:58 +0000 (10:25 +0300)
get-vbox-guestadd-extpack

index 23c0f18e00cc3db254109b0d6cd8654d3ee4ad1d..1387d8eec7ddd8a2608d6868f3458d61f6714e3f 100755 (executable)
@@ -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"