From ccc086260060e7ba30b41ed9428e13ba92ac7a8e Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 10 Aug 2021 02:44:32 +0200 Subject: [PATCH] +source /home/$YOU/.bashrc --- www/boris/check_my_wallet.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/boris/check_my_wallet.sh b/www/boris/check_my_wallet.sh index 045f488..ec790a3 100755 --- a/www/boris/check_my_wallet.sh +++ b/www/boris/check_my_wallet.sh @@ -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