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