simplified a couple commands and removed debug echos
This commit is contained in:
parent
a08f47bb69
commit
2b8b02ac58
7
bb.sh
7
bb.sh
|
@ -1010,14 +1010,9 @@ rebuild_all_entries() {
|
||||||
|
|
||||||
# Read timestamp from post, if present, and sync file timestamp
|
# Read timestamp from post, if present, and sync file timestamp
|
||||||
timestamp=$(awk '/<!-- '$date_inpost': .+ -->/ { print }' "$i" | cut -d '#' -f 2)
|
timestamp=$(awk '/<!-- '$date_inpost': .+ -->/ { print }' "$i" | cut -d '#' -f 2)
|
||||||
if [[ -n $timestamp ]]; then
|
[[ -n $timestamp ]] && touch -t "$timestamp" "$i"
|
||||||
echo "$i" timestamp present $timestamp
|
|
||||||
# Convert to timestamp for touch
|
|
||||||
touch -t "$timestamp" "$i"
|
|
||||||
fi
|
|
||||||
# Read timestamp from file in correct format for 'create_html_page'
|
# Read timestamp from file in correct format for 'create_html_page'
|
||||||
timestamp=$(LC_ALL=C date -r "$i" +"$date_format_full")
|
timestamp=$(LC_ALL=C date -r "$i" +"$date_format_full")
|
||||||
echo "$i" now reading $timestamp
|
|
||||||
|
|
||||||
create_html_page "$contentfile" "$i.rebuilt" no "$title" "$timestamp" "$(get_post_author "$i")"
|
create_html_page "$contentfile" "$i.rebuilt" no "$title" "$timestamp" "$(get_post_author "$i")"
|
||||||
# keep the original timestamp!
|
# keep the original timestamp!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user