Skip to content

Instantly share code, notes, and snippets.

@atomize
Last active May 13, 2021 18:35
Show Gist options
  • Save atomize/f8b075f495c75e8f4039b2f7fee3ef1e to your computer and use it in GitHub Desktop.
Save atomize/f8b075f495c75e8f4039b2f7fee3ef1e to your computer and use it in GitHub Desktop.
Install jq for 64bit Linux via cURL
#!/bin/bash -e
# This scripts installs jq if it is not installed: http://stedolan.github.io/jq/
if ! command -v jq &> /dev/null
then
echo "jq could not be found... installing"
JQ=/usr/bin/jq
curl https://stedolan.github.io/jq/download/linux64/jq > $JQ && chmod +x $JQ
ls -la $JQ
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment