G1PUB=$(cat /home/$YOU/.zen/ipfs/.*/G1SSB/_g1.pubkey)

This commit is contained in:
fred 2021-08-10 02:49:52 +02:00
parent 98a6f31894
commit cde143018a
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
########################################################################
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) && [[ ! $YOU ]] && echo "ipfs NOT RUNNING. EXIT" && exit 1
source /home/$YOU/.bashrc
G1PUB=$(cat /home/$YOU/.zen/ipfs/.*/G1SSB/_g1.pubkey)
[[ $G1PUB == "" ]] && echo "$IPFSNODEID MISSING $G1PUB" && exit 1
/home/$YOU/.zen/astrXbian/zen/jaklis/jaklis.py balance -p $G1PUB