Created
January 22, 2015 17:21
-
-
Save kamermans/c860ae5f3e2cdd49f4a3 to your computer and use it in GitHub Desktop.
Install jq (JSON Command Line processor)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# This scripts installs jq: http://stedolan.github.io/jq/ | |
JQ=/usr/bin/jq | |
curl https://stedolan.github.io/jq/download/linux64/jq > $JQ && chmod +x $JQ | |
ls -la $JQ |
@darookee i get permission error running that. works with the original
@justinTM yes, you still need the chmod +x
-part, but curl
can already 'output to file' by itself, so there is no need to redirect the stdout to the file.
@darookee gotcha I missed that thank you for your replies!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One could also use
curl -sLo $JQ https://stedolan.github.io/jq/download/linux64/jq
instead of> $JQ
.