Skip to content
Snippets Groups Projects
Commit 125e65bf authored by Zachary Wartell's avatar Zachary Wartell
Browse files

-[wip] ccigit-project-info

parent 28bf9341
No related branches found
No related tags found
No related merge requests found
Pipeline #
#!/bin/bash
# \author Zachary Wartell
PAT=$1
OUTFILE=$2
......@@ -6,8 +7,19 @@ OUTFILE=$2
touch $OUTFILE
page=1
while [ $# -gt 0 ]
done=0
while [ $done -ne 1 ]
do
echo curl --header "PRIVATE-TOKEN: $PAT" --ssl-revoke-best-effort --request GET "https://cci-git.charlotte.edu/api/v4/projects?per_page=100&page=1" >> $OUTFILE
#echo $page
rm temp.json
curl --header "PRIVATE-TOKEN: $PAT" --ssl-revoke-best-effort --request GET "https://cci-git.charlotte.edu/api/v4/projects?per_page=100&page=$page" > temp.json
if [ `cat temp.json | wc -c` -lt 2 ]
then
echo DONE
cat temp.json
done=1
else
cat temp.json >> $OUTFILE
page=$(( page + 1 ))
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment