HgO suggestion

This commit is contained in:
Maxime
2025-07-10 10:49:11 +02:00
parent 97a3365cb2
commit d0d6c3e94b

View File

@@ -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) 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[@]} numberOfPads=${#listAllPads_array[@]}
i=1 i=1