Browse Source

Fixed bug in activity report script.

master
Christian P. MOMON 7 months ago
committed by root
parent
commit
7feee73ac1
  1. 4
      rapport_activite/rapport_activite.sh

4
rapport_activite/rapport_activite.sh

@ -112,10 +112,10 @@ generateSpecificReport()
fi
echo "Nombre d'organisations publiques = $publicOrganizationCount"
local repositoryCount=$(curl -s --dump-header - "https://forge.chapril.org/api/v1/repos/search?limit=1&token=$GITEA_API_KEY" | grep "X-Total-Count" | awk '{ print $2 }' | jq '.')
local repositoryCount=$(curl -s --dump-header - "https://forge.chapril.org/api/v1/repos/search?limit=1&token=$GITEA_API_KEY" | grep "X-Total-Count\:" | awk '{ print $2 }' | jq '.')
echo "Nombre de dépôts = $repositoryCount"
local publicRepositoryCount=$(curl -s --dump-header - "https://forge.chapril.org/api/v1/repos/search?limit=1" | grep "X-Total-Count" | awk '{ print $2 }' | jq '.')
local publicRepositoryCount=$(curl -s --dump-header - "https://forge.chapril.org/api/v1/repos/search?limit=1" | grep "X-Total-Count\:" | awk '{ print $2 }' | jq '.')
echo "Nombre de dépôts publics = $publicRepositoryCount"
local repositorySpaceDisk=$(du -sh "$GITEA_REPO_HOME" | head -1 | awk '{ print $1 } ')

Loading…
Cancel
Save