Created
November 7, 2021 14:45
-
-
Save zph/717f627c2a914ebf28c9a58a23883879 to your computer and use it in GitHub Desktop.
Installs keyhole in the `./bin` folder relative to current directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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