From 795c295d380b7ef9b6fe2c0f79e26076725b6db6 Mon Sep 17 00:00:00 2001 From: GRMrGecko Date: Tue, 20 Feb 2024 09:26:39 -0600 Subject: [PATCH] Fix stat time --- mirror-file-generator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirror-file-generator.sh b/mirror-file-generator.sh index 0632368..d21ffde 100644 --- a/mirror-file-generator.sh +++ b/mirror-file-generator.sh @@ -428,7 +428,7 @@ for ((i=0; i<${#selected_mirrors[@]}; i++)); do # Get all timestamps, sort, and get the latest entry. latest_unix_stat=$(stat --format='%W %X %Y %Z' "$timestamp_file_stat" | tr ' ' '\n' | sort -nr | head -n1) # Format the timestamp. - repo_sync_time=$(date -d "@$(cat "$latest_unix_stat")" '+%c') + repo_sync_time=$(date -d "@$latest_unix_stat" '+%c') fi # HTML encode and export variables for subsitution.