From dd7325da391020ffe06f77bff234f035f4209fc6 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 8 Dec 2025 14:48:32 -0700 Subject: [PATCH] Prevent date formatting if the time flag is not set. --- files/scripts/compress_image.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/scripts/compress_image.sh b/files/scripts/compress_image.sh index e86f313..9a915fc 100755 --- a/files/scripts/compress_image.sh +++ b/files/scripts/compress_image.sh @@ -129,10 +129,10 @@ $search "$location" | sort | while read image; do ## Expanded Filename ## # Add back in the dashes so that the year, month, date, and time are exposed. TEMP="$new_image_clean" - # Date Data - new_image_exp="${TEMP:0:4}-${TEMP:4:2}-${TEMP:6:2}" - # Time Data if [[ "$format_time" == "Y" ]]; then + # Date Data + new_image_exp="${TEMP:0:4}-${TEMP:4:2}-${TEMP:6:2}" + # Time Data new_image_exp="${new_image_exp}_${TEMP:8:2}-${TEMP:10:2}-${TEMP:12:2}" fi # Remainder Data