chezmoi/bin/executable_devhamctl
kjuulh 31d7ef27a8
Add bin/devhamctl
Add bin/docker-traverse.sh
Add bin/exec-sanity.sh
Add bin/lunardev.sh
Add bin/record.sh
Add bin/restart-builds-drone.sh
Add bin/run-dosier.sh
Add bin/sanity.sh
Add bin/scan-for-bad-indexes.sh
Add bin/ssh-agent.sh
Add bin/terraform.sh
Add bin/tmux.sh
Add bin/update-vault.sh
Add bin/zimfwupdate.sh
2023-07-24 12:42:39 +02:00

25 lines
499 B
Bash

#!/bin/bash
set -e
function cleanupTempDir() {
temp=$1
echo "cleaning up $temp"
rm -r $temp
echo "cleaned up tempdir"
}
tempdir=$(mktemp -d -t "devhamctl")
trap "cleanupTempDir $tempdir" EXIT
pushd $tempdir
echo "fetching release manager [hamctl]"
wget -q https://github.com/lunarway/release-manager/releases/download/$1/hamctl-darwin-amd64 -O binhamctl
shift
echo "calling release manager [hamctl] with args [$@]"
chmod +x binhamctl
HAMCTL_URL="http://some-url" ./binhamctl "$@"
popd