From d41d7efdbfb97437583d26a9cd32dc057f037fe9 Mon Sep 17 00:00:00 2001 From: David Williams Date: Fri, 26 Aug 2016 16:05:51 -0400 Subject: Bug 500233 - Build IDs 1 minute too early Improved fix truncating epoch seconds to nearest 5 minutes. Modified previous improvement to remove "warning" and simply echo another "DEBUG" statement that "RAWDATE was already set". I observed in a test run that the source file is "included" several times, so it is misleading to declare it a "warning" if it is found already set. --- production/bootstrapVariables.shsource | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production/bootstrapVariables.shsource b/production/bootstrapVariables.shsource index 2bd5364e6..937a9f639 100644 --- a/production/bootstrapVariables.shsource +++ b/production/bootstrapVariables.shsource @@ -32,7 +32,7 @@ then export RAWDATE echo -e "\n\t[DEBUG] RAWDATE in ${0##*/} was empty (as expected) so setting to \"now minus $remainder\" (truncating to nearest 5 minutes): ${RAWDATE}\n" else - echo -e "\n\t[WARNING] RAWDATE in ${0##*/} was NOT empty as expected so there may be a program error? RAWDATE: ${RAWDATE}\n" + echo -e "\n\t[DEBUG] RAWDATE in ${0##*/} was already set. RAWDATE: ${RAWDATE}\n" fi if [[ -z "${SCRIPT_PATH}" ]] then -- cgit v1.2.3