From d27f726c8fdaa37026a059af0c1158ffc547f9f3 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 24 Dec 2015 23:13:56 +0100 Subject: [PATCH] Guard against non-existing tracefiles (eg. new archive) --- config/debian/dinstall.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index b8a4b0eb..a0c362c1 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -443,7 +443,7 @@ function mirror() { log "Regenerating \"public\" mirror/${archive} hardlink fun" DATE_SERIAL=$(date +"%Y%m%d01") - FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} ) + FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} || echo ${DATE_SERIAL} ) if [ "$DATE_SERIAL" -gt "$FILESOAPLUS1" ]; then SERIAL="$DATE_SERIAL" else -- 2.39.2