Remove silkaj error log

This commit is contained in:
poka 2020-11-25 21:07:15 +01:00
parent 69bfe6cea7
commit 4418e2f11d
1 changed files with 1 additions and 2 deletions

View File

@ -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")