[med-svn] [Git][med-team/community/helper-scripts][master] fix running on new repos

Michael R. Crusoe gitlab at salsa.debian.org
Thu Jan 17 10:02:44 GMT 2019


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 git at salsa.debian.org:${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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190117/dce03590/attachment-0001.html>


More information about the debian-med-commit mailing list