diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-14 19:23:00 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-14 19:23:00 +0200 |
| commit | 50d7be8d947b71e4dba181314fcf3392100d0080 (patch) | |
| tree | d8106c362486bbd194c79e9fe2e2075e4eb6029d /.pik/install.sh | |
| parent | 4fd3756396bcdb6ecad4b2a836c68349e797004d (diff) | |
cleanup
Diffstat (limited to '.pik/install.sh')
| -rw-r--r-- | .pik/install.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.pik/install.sh b/.pik/install.sh new file mode 100644 index 0000000..117fcc6 --- /dev/null +++ b/.pik/install.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# install pik to ~/.local/bin +set -euo pipefail +DEST_FOLDER="$HOME/.local/bin" +if [ ! -d "$DEST_FOLDER" ] ; then + echo "I only know how to install to ~/.local/bin, sorry!" +fi +DEST="$DEST_FOLDER/pik" +if [ -f "$DEST" ] ; then + rm "$DEST" +fi + +go build -o "$DEST" "$@" . +echo "congratulations!"
\ No newline at end of file |
