Commit c8e58934 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian live: properly deal with files which might not exist



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 867fd566
...@@ -34,13 +34,10 @@ cleanup() { ...@@ -34,13 +34,10 @@ cleanup() {
local RESULT=$1 local RESULT=$1
output_echo "Publishing results." output_echo "Publishing results."
# Remove previously published files # Remove previously published files if they exist
# Ignore the error code, because the file might not be present [ ! -f ${DESKTOP}-${SUITE}.iso ] || publish_file delete ISOfile ${DESKTOP}-${SUITE}.iso
set +e [ ! -f ${DESKTOP}-${SUITE}.txt ] || publish_file delete Summary ${DESKTOP}-${SUITE}.txt
publish_file delete ISOfile ${DESKTOP}-${SUITE}.iso [ ! -f ${DESKTOP}-${SUITE}.html ] || publish_file delete DiffoscopeOutput ${DESKTOP}-${SUITE}.html
publish_file delete Summary ${DESKTOP}-${SUITE}.txt
publish_file delete DiffoscopeOutput ${DESKTOP}-${SUITE}.html
set -e
if [ "${RESULT}" == "success" ]; then if [ "${RESULT}" == "success" ]; then
output_echo "Info: no differences found." output_echo "Info: no differences found."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment