Update worker.sh

This commit is contained in:
probonopd authored and GitHub committed 2017-08-19 23:42:41 +02:00
1 parent 3050be66f1
commit 402012b9fc
1 file changed
+1 -1
+1 -1
View File
@@ -285,7 +285,7 @@ for INPUTBASENAME in database/*; do
echo "" >> apps/$INPUTBASENAME.md
echo "authors:" >> apps/$INPUTBASENAME.md
GH_USER=$(grep "^https://github.com.*" data/$INPUTBASENAME | cut -d '/' -f 4 )
GH_REPO=$(grep "^https://github.com.*" data/$INPUTBASENAME | cut -d '/' -f 4 )
GH_REPO=$(grep "^https://github.com.*" data/$INPUTBASENAME | cut -d '/' -f 5 )
if [ "$GH_USER" == "" ] ; then
GH_USER=$(grep "^https://api.github.com.*" data/$INPUTBASENAME | cut -d '/' -f 5 )
GH_REPO=$(grep "^https://api.github.com.*" data/$INPUTBASENAME | cut -d '/' -f 6 )