[Git][security-tracker-team/security-tracker][master] gen-DSA: don't set extracvefile to "null"

Emilio Pozuelo Monfort (@pochu) pochu at debian.org
Wed Feb 9 09:44:58 GMT 2022



Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker


Commits:
03990842 by Emilio Pozuelo Monfort at 2022-02-09T10:42:55+01:00
gen-DSA: don't set extracvefile to "null"

...if the file config key doesn't exist, otherwise git commit
will fail.

- - - - -


1 changed file:

- bin/gen-DSA


Changes:

=====================================
bin/gen-DSA
=====================================
@@ -415,7 +415,7 @@ EOF
     if [ "$IDMODE" = "DLA" ] || [ "$IDMODE" = "ELA" ]; then
 	idmode=$(echo "$IDMODE" | tr A-Z a-z)
 	if [ -n "${DISTS}" ]; then
-	    extracvefile=`jq -r ".distributions.${DISTS}.maincvefile" data/config.json`
+	    extracvefile=`jq -r ".distributions.${DISTS}.maincvefile // empty" data/config.json`
 	fi
 	if [ -d .git ]; then
 	    echo "Made the following changes:"



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/039908428661412ee482d64abaa0823ec3e68630

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/039908428661412ee482d64abaa0823ec3e68630
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-security-tracker-commits/attachments/20220209/bf555558/attachment-0001.htm>


More information about the debian-security-tracker-commits mailing list