From e9a203ac264e10b98484da744085f30e20e518d6 Mon Sep 17 00:00:00 2001 From: poka Date: Fri, 16 Oct 2020 22:01:11 +0200 Subject: [PATCH] walletsBalance.sh: Check silkaj installation --- scripts/walletsBalance.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/walletsBalance.sh b/scripts/walletsBalance.sh index ab1c843..afa78f9 100755 --- a/scripts/walletsBalance.sh +++ b/scripts/walletsBalance.sh @@ -6,6 +6,8 @@ GPATH="$( cd "$(dirname "$0")" ; pwd -P )/.." source $GPATH/.env node=$(cut -d '/' -f3 <<<"$DUNITER") +#Check if Silkaj is installed +[[ ! $(which silkaj) ]] && echo "Erreur: Vous devez installer Silkaj." && exit 1 rm -f silkaj_error.log work() {