From 4418e2f11d6e094378970038573eab57780a0d2b Mon Sep 17 00:00:00 2001 From: poka Date: Wed, 25 Nov 2020 21:07:15 +0100 Subject: [PATCH] Remove silkaj error log --- scripts/walletsBalance.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/walletsBalance.sh b/scripts/walletsBalance.sh index e7d06ae..d53350b 100755 --- a/scripts/walletsBalance.sh +++ b/scripts/walletsBalance.sh @@ -9,7 +9,6 @@ node=$(cut -d '/' -f3 <<<"$DUNITER") #Check if Silkaj is installed [[ -z $SILKAJ ]] && SILKAJ=$(which silkaj) [[ -z $SILKAJ ]] && echo "Erreur: Vous devez installer Silkaj." && exit 1 -rm -f silkaj_error.log work() { for i in $wallets; do @@ -17,7 +16,7 @@ work() { balance=$($SILKAJ -p $node balance $i 2>/dev/null) } exec - while [[ $? == 1 ]]; do echo "Erreur $k: $i" | tee -a silkaj_error.log; ((k++)); exec; done + while [[ $? == 1 ]]; do echo "Erreur $k: $i"; ((k++)); exec; done unset k balance=$(awk '/Total Quantitative =/ { print $4 }' <<<"$balance")