Skip to content

Instantly share code, notes, and snippets.

@fczuardi
Forked from xCoreDev/pretty-rpc.sh
Last active October 26, 2015 03:30
Show Gist options
  • Save fczuardi/6592dfb548f6b67f1360 to your computer and use it in GitHub Desktop.
Save fczuardi/6592dfb548f6b67f1360 to your computer and use it in GitHub Desktop.
Pretty JSON display for Vanillacoin RPC calls
#!/bin/bash
# Check root or user
if (( EUID != 0 )); then
echo -e "\n- - - - - - - - - \n"
echo "You are not enough root for this !"
echo -e "\n- - - - - - - - - \n"
exit
fi
# Download file, set perms, & move it to /usr/bin/
cd ~
wget https://raw.githubusercontent.com/fczuardi/vanilla-bash/master/api.sh &&
chmod +x api.sh && mv api.sh /usr/bin/vnl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment