OBS names have no ':'

This commit is contained in:
probonopd authored and GitHub committed 2018-01-20 22:30:19 +01:00
1 parent d35d2865d5
commit ff15a7ae7b
1 file changed
+1 -1
+1 -1
View File
@@ -343,7 +343,7 @@ for INPUTBASENAME in database/*; do
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 5 )
OBS_USER=$(grep "^http.*://download.opensuse.org/repositories/home:/" data/$INPUTBASENAME | cut -d "/" -f 6)
OBS_USER=$(grep "^http.*://download.opensuse.org/repositories/home:/" data/$INPUTBASENAME | cut -d "/" -f 6 | sed -e 's|:||g')
if [ x"$GH_USER" == x"" ] ; 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 )