initial commit

This commit is contained in:
Steven 2025-12-05 13:48:32 -05:00
commit 2f723ac7ee
5 changed files with 165 additions and 0 deletions

18
install/install-yq Executable file
View file

@ -0,0 +1,18 @@
#!/bin/sh
url="https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64"
dir=$(mktemp -d)
cleanup () {
rm -rf "$dir"
}
trap cleanup EXIT
curl -L "$url" -o "$dir/yq"
chmod +x "$dir/yq"
# mkdir -p is not POSIX compliant
[ ! -d ~/.local ] && mkdir ~/.local
[ ! -d ~/.local/bin ] && mkdir ~/.local/bin
cp "$dir/yq" ~/.local/bin