Move old setup/error logs before any logs are written on a subsequent setup invocation

This commit is contained in:
Jason Ertel
2023-03-20 11:04:28 -04:00
parent da1c501cf7
commit 6b8b7df3c2

View File

@@ -59,8 +59,8 @@ while [[ $# -gt 0 ]]; do
done done
# Preserve old setup/error logs # Preserve old setup/error logs
[ -f "$error_log" ] && mv "$error_log" "$error_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.$(+%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 # Let's see what OS we are dealing with here
detect_os detect_os