Michael R. Crusoe pushed to branch master at Debian Med / community / 
helper-scripts


Commits:
f2096f54 by Michael R. Crusoe at 2019-01-17T10:02:41Z
fix running on new repos
- - - - -


1 changed file:

- inject-into-salsa-git


Changes:

=====================================
inject-into-salsa-git
=====================================
@@ -37,10 +37,10 @@ if [ "$SALSA_GROUP_ID" = "" ] ; then
 fi
 
 # Did we already push to salsa?
-set -x
+set +e
 RESPONSE=$(curl "$SALSA_URL/projects?search=${DEBPKGNAME}")
 echo $RESPONSE | jq --exit-status "map(select(.path == \"${DEBPKGNAME}\")) | 
.[0].id" > /dev/null
-set +x
+set -e
 if [ $? -ne 0 ]; then
     # Seems like not, lets create a project
     set -x
@@ -58,7 +58,9 @@ else
     set +x
 fi
 
+set +e
 git remote show origin
+set -e
 if [ $? -ne 0 ] ; then
     git remote add origin 
[email protected]:${SALSA_GROUP}/${DEBPKGNAME}.git
 fi



View it on GitLab: 
https://salsa.debian.org/med-team/community/helper-scripts/commit/f2096f5461e685552b90d6bdd65834b0a9783700

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/community/helper-scripts/commit/f2096f5461e685552b90d6bdd65834b0a9783700
You're receiving this email because of your account on salsa.debian.org.
_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to