diff --git a/scripts/ci/jobs/diff-dumps.sh b/scripts/ci/jobs/diff-dumps.sh index 369a1bcc9..e7b688b9c 100755 --- a/scripts/ci/jobs/diff-dumps.sh +++ b/scripts/ci/jobs/diff-dumps.sh @@ -117,8 +117,9 @@ upload_v4_versioned_vuln() { cmd+=(echo "Would do") fi cd /tmp/offline-dump + cat out/RELEASE_VERSION.txt | - grep -oE '^[0-9]+\.[0-9]+' | + grep -oE '^[0-9]+\.[0-9]+' | sort -V | uniq | while read -r version; do @@ -129,7 +130,6 @@ upload_v4_versioned_vuln() { else echo "Failed to download scanner-v4-defs-${version}.zip, skipping..." fi - done <<< "$versions" } diff_dumps() {