mirror of
https://github.com/CopterExpress/clover_vm.git
synced 2026-05-26 07:07:58 +00:00
Make build script work on mac and linux
This commit is contained in:
11
build.sh
11
build.sh
@@ -9,9 +9,14 @@ set -e
|
||||
PACKER="./packer"
|
||||
if [ ! -f ${PACKER} ]; then
|
||||
echo "Packer not found; downloading v1.5.4 from Hashicorp"
|
||||
wget --progress=dot:giga https://releases.hashicorp.com/packer/1.5.4/packer_1.5.4_darwin_amd64.zip
|
||||
unzip packer_1.5.4_darwin_amd64.zip
|
||||
rm packer_1.5.4_darwin_amd64.zip
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
OS=linux
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
OS=darwin
|
||||
fi
|
||||
wget --progress=dot:giga https://releases.hashicorp.com/packer/1.5.4/packer_1.5.4_${OS}_amd64.zip
|
||||
unzip packer_1.5.4_${OS}_amd64.zip
|
||||
rm packer_1.5.4_${OS}_amd64.zip
|
||||
fi
|
||||
|
||||
echo "--- Using Packer version $(${PACKER} --version)"
|
||||
|
||||
Reference in New Issue
Block a user