Skip to content

Instantly share code, notes, and snippets.

@xCoreDev
Last active March 29, 2016 14:09
Show Gist options
  • Save xCoreDev/9a89ec97c404347e707c to your computer and use it in GitHub Desktop.
Save xCoreDev/9a89ec97c404347e707c 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
# Install dep
apt-get install jq -y &&
# Download file, set perms, & move it to /usr/bin/
cd ~
wget https://raw.githubusercontent.com/whphhg/vanillacoind-rpc/master/rpc.sh &&
chmod +x rpc.sh && mv rpc.sh /usr/bin/xvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment