From 4e2888858febf18e38f0a932526a782f1f18754a Mon Sep 17 00:00:00 2001 From: daynewlee Date: Tue, 20 Feb 2024 20:59:01 -0600 Subject: [PATCH] update def file check --- scripts/ci/jobs/diff-dumps.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/ci/jobs/diff-dumps.sh b/scripts/ci/jobs/diff-dumps.sh index 94574cf2c..369a1bcc9 100755 --- a/scripts/ci/jobs/diff-dumps.sh +++ b/scripts/ci/jobs/diff-dumps.sh @@ -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"