Skip to content

Commit

Permalink
Merge pull request #149 from influxdata/jdstrand/fix-cve-nfu-with-commas
Browse files Browse the repository at this point in the history
fix(cve-nfu): handle CVE-...,CVE-...
  • Loading branch information
jdstrand committed Dec 11, 2023
2 parents b296862 + bae1d7d commit 924e4eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/cve-nfu
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ else
cves=("$@")
fi

for cve in "${cves[@]}" ; do
add_nfu "${cve//,/}" "$proj"
for tmp in "${cves[@]}" ; do
for cve in ${tmp//,/ } ; do # handle CVE-YYYY-NNN1,CVE-YYYY-NNN2
add_nfu "$cve" "$proj"
done
done
fi

0 comments on commit 924e4eb

Please sign in to comment.