mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-03 20:39:27 -05:00
18 lines
310 B
Bash
Executable file
18 lines
310 B
Bash
Executable file
#!/bin/bash
|
|
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
set -e
|
|
|
|
hdiutil attach $1
|
|
cd /Volumes/VirtualBox/
|
|
sudo installer -pkg VirtualBox.pkg -target "/"
|
|
cd /tmp
|
|
flag=1
|
|
while [ $flag -ne 0 ]; do
|
|
sleep 1
|
|
set +e
|
|
hdiutil detach /Volumes/VirtualBox/
|
|
flag=$?
|
|
set -e
|
|
done
|