test-bugzilla-files/zip.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 681a65b8c90b6555b2e15f20bfb9cf634ec40d11
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Tue Nov 8 14:04:09 2022 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Tue Nov 8 14:11:47 2022 +0100

    Generate current.zip only if it is to be uploaded
    
    Change-Id: Ie59f47b18ccceca7666006420bf8361b80e54784
    Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/142457
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/test-bugzilla-files/zip.sh b/test-bugzilla-files/zip.sh
index a843ac3..17b6848 100755
--- a/test-bugzilla-files/zip.sh
+++ b/test-bugzilla-files/zip.sh
@@ -41,9 +41,9 @@ cp ../exportCrashes.csv ../importCrash.csv ../odfundiff.csv 
../validationErrors.
 python analyze_logs.py
 cp exportCrashes.csv importCrash.csv odfundiff.csv validationErrors.csv ../.
 cd ..
-rm -f current.zip
-zip -r current.zip $SHA/*
 if [ -z "$CRASHTEST_NO_UPLOAD" ]; then
+    rm -f current.zip
+    zip -r current.zip $SHA/*
     scp current.zip 
[email protected]:/srv/www/dev-builds.libreoffice.org/crashtest/.
     ssh [email protected] unzip -n 
/srv/www/dev-builds.libreoffice.org/crashtest/current.zip -d 
/srv/www/dev-builds.libreoffice.org/crashtest
 fi

Reply via email to