New script to generate the list of Git repos from a given organization.

This commit is contained in:
Manuele Simi 2021-01-26 22:59:43 -05:00
parent 66191030eb
commit bafacb702c
2 changed files with 9 additions and 1 deletions

8
generateRepoList.sh Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
timestamp=$(date +"%Y-%m-%d_%H-%M-%S")
curl -X GET "https://code-repo.d4science.org/api/v1/orgs/gCubeSystem/repos" -H "accept: application/json" | python -mjson.tool > allp.json
grep "\"name\": " allp.json > all_filtered.json
sed "s/^[ \t]*\"name\": \"//g" all_filtered.json > all_filtered1.txt
sed 's/\",//g' all_filtered1.txt > all_filtered2.txt
sort all_filtered2.txt > all_sorted.txt
mv all_sorted.txt gCubeSystem_all_sorted_$timestamp.txt

View File

@ -289,4 +289,4 @@ worms-spd-plugin
wps
ws-task-executor-widget
ws-thredds
ws-thredds-sync-widget
ws-thredds-sync-widget