Created
May 6, 2018 06:01
-
-
Save TravisMullen/c1730ac9694082362c351200e8044bc4 to your computer and use it in GitHub Desktop.
Is wallet staking status active.
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 | |
output=$(pivx-cli getstakingstatus | jq -r '.["staking status"]') | |
if [ "$output" == "true" ]; then | |
echo "staking is active" | |
exit 0 | |
fi | |
echo "staking is NOT active" | |
exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment