mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-14 02:42:51 +00:00
10 lines
336 B
Bash
Executable file
10 lines
336 B
Bash
Executable file
#!/bin/sh
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
|
DIR=/tmp/appdwarf
|
|
mkdir -p $DIR
|
|
LINK=https://releases.hashicorp.com/vagrant
|
|
VER=$(curl -L $LINK | grep -m1 'href.*[0-9]' | cut -d/ -f3)
|
|
LINK2=https://releases.hashicorp.com/vagrant/$VER/vagrant_"$VER"_linux_amd64.zip
|
|
curl "$LINK2" | bsdtar xf - -C$DIR
|
|
appdwarf -a $DIR/vagrant
|