diff options
Diffstat (limited to 'common/packages.yml')
| -rw-r--r-- | common/packages.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/packages.yml b/common/packages.yml index afc4504..a0f7d2f 100644 --- a/common/packages.yml +++ b/common/packages.yml @@ -804,10 +804,11 @@ custom_installs: yq: condition: "! command -v yq" linux: | + mkdir -p "$HOME/.local/bin" YQ_VERSION=$(curl -s https://api.github.com/repos/mikefarah/yq/releases/latest | grep 'tag_name' | cut -d'"' -f4) YQ_BINARY="yq_linux_amd64" - curl -L "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/${YQ_BINARY}" -o ~/.local/bin/yq - chmod +x ~/.local/bin/yq + curl -L "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/${YQ_BINARY}" -o "$HOME/.local/bin/yq" + chmod +x "$HOME/.local/bin/yq" macos: "brew install yq" windows: "choco install yq" |
