Steffen Möller pushed to branch master at Debian Med / community / 
helper-scripts


Commits:
b26611e3 by Steffen Moeller at 2019-05-06T08:48:53Z
Fool-proofing

- - - - -


1 changed file:

- inject-into-salsa-git


Changes:

=====================================
inject-into-salsa-git
=====================================
@@ -11,6 +11,8 @@ if [ ! -f $SALSARC ] ; then
   echo "Just create one containing"
   echo 'SALSA_URL="https://salsa.debian.org/api/v4";'
   echo 'SALSA_TOKEN="YOUR_SALSA_TOKEN"'
+  echo
+  echo 'See https://salsa.debian.org/profile/personal_access_tokens to learn 
more.'
   exit 1
 fi
 
@@ -22,6 +24,21 @@ check_return_code() {
     fi
 }
 
+if [ ! -d debian ]; then
+  echo "E: Missing 'debian' folder. Please execute this script from the root 
of a nascent Debian package."
+  exit 1
+fi
+
+if [ ! -d .git ]; then
+  echo "E: This Debian package is meant to be imported into git already. But 
there is no .git directory."
+  exit 1
+fi
+
+if [ ! -x /usr/bin/jq ]; then
+  echo "E: You need the 'jq' JSON command line processor from the cognate 
package."
+  exit 1
+fi
+
 . ${SALSARC}
 
 DEBPKGNAME=`dpkg-parsechangelog | awk '/^Source:/ {print $2}'`



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

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/community/helper-scripts/commit/b26611e3c013642c3e665deb5fced40cdfc53166
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