Skip to content

Commit

Permalink
update def file check
Browse files Browse the repository at this point in the history
  • Loading branch information
daynewlee committed Feb 21, 2024
1 parent b5de8da commit 4e28888
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/ci/jobs/diff-dumps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ upload_offline_dump() {
latest_version=$(grep -oE '^[0-9]+\.[0-9]+' "$version_file" | sort -V | tail -n 1)

file_to_check="scanner-v4-defs-${latest_version}.zip"

curl --silent --show-error --max-time 60 --retry 3 -o $file_to_check https://storage.googleapis.com/scanner-v4-test/offline-bundles/$file_to_check

if [ -f "$file_to_check" ]; then
if curl --silent --show-error --max-time 60 --retry 3 -o $file_to_check https://storage.googleapis.com/scanner-v4-test/offline-bundles/$file_to_check; then
# If the file exists, add it to scanner-vuln-updates.zip
zip scanner-vuln-updates.zip "$file_to_check"
echo "$file_to_check added to scanner-vuln-updates.zip"
Expand Down

0 comments on commit 4e28888

Please sign in to comment.