From 981184a4787d576c4a3d82b4218993f0cc388ecb Mon Sep 17 00:00:00 2001 From: poka Date: Tue, 29 Oct 2019 05:29:10 +0100 Subject: [PATCH] Add dependences installation --- nbr-wallets.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nbr-wallets.sh b/nbr-wallets.sh index 5d14963..66b5c0d 100755 --- a/nbr-wallets.sh +++ b/nbr-wallets.sh @@ -5,6 +5,7 @@ DUNITER="https://duniter-g1.p2p.legal" indexhtml="index.html" ### +[[ -z $(which jq) || -z $(which bc) ]] && apt update && apt install jq bc echo "Initialisation ..." id=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) outFile="/tmp/g1-stats_$id"