From d0d6c3e94b6c1467ed2e7c60af598c5e970eaae6 Mon Sep 17 00:00:00 2001 From: Maxime Date: Thu, 10 Jul 2025 10:49:11 +0200 Subject: [PATCH] HgO suggestion --- pad_scrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pad_scrapper.sh b/pad_scrapper.sh index c05b1e1..53571d1 100755 --- a/pad_scrapper.sh +++ b/pad_scrapper.sh @@ -5,7 +5,7 @@ password=$(< password-admin.txt) token=$(curl "https://pads.erg.be/oidc/token" -X POST -H 'content-type: application/x-www-form-urlencoded' --data grant_type=client_credentials --data client_id="$login" --data client_secret="$password" -s | jq .access_token -r) -listAllPads_array=($(curl "https://pads.erg.be/api/1.2.1/listAllPads" -H "Authorization: Bearer $token" | jq '.data.padIDs | @sh' -r | tr -d \')) +listAllPads_array=($(curl -s "https://pads.erg.be/api/1.2.1/listAllPads" -H "Authorization: Bearer $token" | jq '.data.padIDs[]' -r)) numberOfPads=${#listAllPads_array[@]} i=1