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
This commit is contained in:
24
bin/executable_devhamctl
Normal file
24
bin/executable_devhamctl
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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
|
Reference in New Issue
Block a user