+source /home/$YOU/.bashrc

This commit is contained in:
fred 2021-08-10 02:44:32 +02:00
parent 301096c2ea
commit ccc0862600
1 changed files with 1 additions and 2 deletions

View File

@ -5,8 +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
G1PUB=$(cat /home/$YOU/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) && [[ ! $G1PUB ]] && echo "ERREUR G1PUB. EXIT" && exit 1
source /home/$YOU/.bashrc
[[ $G1PUB == "" ]] && echo "G1PUB MISSING" && exit 1
/home/$YOU/.zen/astrXbian/zen/jaklis/jaklis.py balance -p $G1PUB