blob: 622f139fc557a221cfda47740d70af60229f7653 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env bash
# clyhtsuriva
VER=$1
pushd /tmp/ || exit
curl -LO "https://releases.hashicorp.com/packer/${VER}/packer_${VER}_linux_amd64.zip" && \
unzip "packer_${VER}_linux_amd64.zip" && \
rm LICENSE.txt && \
mv packer ~/.local/bin/packer && \
packer -v && \
rm "packer_${VER}_linux_amd64.zip"
popd || exit
|