From 6b8b7df3c23e457d2b75bb53c0c1f4267cbcfa35 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Mon, 20 Mar 2023 11:04:28 -0400 Subject: [PATCH] Move old setup/error logs before any logs are written on a subsequent setup invocation --- setup/so-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/so-setup b/setup/so-setup index 5356965aa..88a2fd045 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -59,8 +59,8 @@ while [[ $# -gt 0 ]]; do done # Preserve old setup/error logs -[ -f "$error_log" ] && mv "$error_log" "$error_log.$(+%Y-%m-%dT%H:%M:%S)" -[ -f "$setup_log" ] && mv "$setup_log" "$setup_log.$(+%Y-%m-%dT%H:%M:%S)" +[ -f "$error_log" ] && mv "$error_log" "$error_log.$(date +%Y-%m-%dT%H:%M:%S)" +[ -f "$setup_log" ] && mv "$setup_log" "$setup_log.$(date +%Y-%m-%dT%H:%M:%S)" # Let's see what OS we are dealing with here detect_os