From 258a9feffed994741eaf13d7e8e965361cdca0ef Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 11 Nov 2017 22:57:43 +0100 Subject: [PATCH 201/325] reproduce.sh: Use a LOG_TIMESTAMP_FORMAT variable. Squash? Obtained from: ElectroBSD --- reproduce.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reproduce.sh b/reproduce.sh index 996212b07665..a0cc4bf7c0c7 100755 --- a/reproduce.sh +++ b/reproduce.sh @@ -58,12 +58,15 @@ RESUME_BUILD="${RESUME_BUILD-false}" # different number of cores. XZ_THREADS="${XZ_THREADS-2}" +# Used by announce_status() to create a timestamp prefix +LOG_TIMESTAMP_FORMAT='+%Y-%m-%d %H:%M:%S' + announce_status() { local msg \ timestamp msg="${*}" - timestamp=$(date "+%Y-%m-%d %H:%M") + timestamp=$(date "${LOG_TIMESTAMP_FORMAT}") echo "${timestamp}: ${msg}" } -- 2.32.0