Skip to content

Instantly share code, notes, and snippets.

@zph
Created November 7, 2021 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zph/717f627c2a914ebf28c9a58a23883879 to your computer and use it in GitHub Desktop.
Save zph/717f627c2a914ebf28c9a58a23883879 to your computer and use it in GitHub Desktop.
Installs keyhole in the `./bin` folder relative to current directory
#!/usr/bin/env bash
set -eou pipefail
set -x
CURRENT_DIR="$(pwd)"
WORKSPACE=$(mktemp -d)
trap "rm -rf $WORKSPACE" EXIT
(
cd "$WORKSPACE"
git clone --depth 1 https://github.com/simagix/keyhole.git
cd keyhole
go mod download
go build main/keyhole.go
mv ./keyhole "$CURRENT_DIR/bin"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment