File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -1010,14 +1010,9 @@ rebuild_all_entries() {
1010
1010
1011
1011
# Read timestamp from post, if present, and sync file timestamp
1012
1012
timestamp=$( awk ' /<!-- ' $date_inpost ' : .+ -->/ { print }' " $i " | cut -d ' #' -f 2)
1013
- if [[ -n $timestamp ]]; then
1014
- echo " $i " timestamp present $timestamp
1015
- # Convert to timestamp for touch
1016
- touch -t " $timestamp " " $i "
1017
- fi
1013
+ [[ -n $timestamp ]] && touch -t " $timestamp " " $i "
1018
1014
# Read timestamp from file in correct format for 'create_html_page'
1019
1015
timestamp=$( LC_ALL=C date -r " $i " +" $date_format_full " )
1020
- echo " $i " now reading $timestamp
1021
1016
1022
1017
create_html_page " $contentfile " " $i .rebuilt" no " $title " " $timestamp " " $( get_post_author " $i " ) "
1023
1018
# keep the original timestamp!
You can’t perform that action at this time.
0 commit comments