Skip to content

Instantly share code, notes, and snippets.

@dserodio
Created August 15, 2024 16:48
Show Gist options
  • Save dserodio/8d3ccefcc69b649c130d9554ebdcdd44 to your computer and use it in GitHub Desktop.
Save dserodio/8d3ccefcc69b649c130d9554ebdcdd44 to your computer and use it in GitHub Desktop.
#!/bin/bash
if type "pkgx" &> /dev/null; then
echo "pkgx is already installed"
eval "$(pkgx --shellcode)"
else
echo "installing pkgx"
eval "$(curl -Ssf https://pkgx.sh)"
fi
env +jq +yq
jq --version
yq --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment