Skip to content

Instantly share code, notes, and snippets.

@maurobaraldi
Last active August 29, 2015 14:10
Show Gist options
  • Save maurobaraldi/37fbae45a37b6c4e87c0 to your computer and use it in GitHub Desktop.
Save maurobaraldi/37fbae45a37b6c4e87c0 to your computer and use it in GitHub Desktop.
JSONTools install
#!/bin/sh
{
echo "Install JSONTools in your environment."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
# run inside sudo
sudo sh <<SCRIPT
wget https://gist.githubusercontent.com/maurobaraldi/7562d11c5bec8b519cee/raw/02aa60d0fc91a06350d2188f15cb4ee0411435a0/jsontools -O /usr/bin/jsontools
chmod +x /usr/bin/jsontools
echo "JSONTools successfuly installed in your environment."
echo "To use type jsontools --help"
echo ""
echo "Thanks for using JSONTools."
echo "author: Mauro Baraldi <[email protected]>"
SCRIPT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment