diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2023-02-27 11:35:40 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2023-02-27 11:35:40 +0100 |
commit | f05b5689f86243b227068cf9331d8146fbc33cf8 (patch) | |
tree | 8671383b7e364e2083cc7e16420cfb4d80d7d8ef /bin | |
parent | fd13d07d83fd124064d625206bcca97d6a386df3 (diff) | |
download | infra-f05b5689f86243b227068cf9331d8146fbc33cf8.tar.gz infra-f05b5689f86243b227068cf9331d8146fbc33cf8.tar.bz2 infra-f05b5689f86243b227068cf9331d8146fbc33cf8.tar.xz infra-f05b5689f86243b227068cf9331d8146fbc33cf8.zip |
unifi-controller
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/terragrunt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bin/terragrunt b/bin/terragrunt new file mode 100755 index 0000000..04086d1 --- /dev/null +++ b/bin/terragrunt @@ -0,0 +1,36 @@ +#!/bin/bash + +set -euo pipefail + +v=0.44.0 + +basedir="${0%/*}" +self="${0##*/}" + +s=$(uname -s) +case "$s" +in + Darwin) s=darwin ;; + Linux) s=linux ;; + *) echo "Unsupported system: $s" >/dev/stderr ;; +esac + +m=$(uname -m) +case "$m" +in + x86_64) m=amd64 ;; + arm64) ;; + *) echo "Unsupported machine: $m" >/dev/stderr ;; +esac + +url=https://github.com/gruntwork-io/terragrunt/releases/download/v${v}/terragrunt_${s}_${m} +bin="$basedir/.tmp/$v/$self" + +if [[ ! -x "$bin" ]] +then + mkdir -p $(dirname "$bin") + wget -O "$bin" "$url" + chmod +x $bin +fi + +exec "$bin" "${@}" |