Skip to content

Commit 2b8b02a

Browse files
committed
simplified a couple commands and removed debug echos
1 parent a08f47b commit 2b8b02a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bb.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,14 +1010,9 @@ rebuild_all_entries() {
10101010
10111011
# Read timestamp from post, if present, and sync file timestamp
10121012
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"
10181014
# Read timestamp from file in correct format for 'create_html_page'
10191015
timestamp=$(LC_ALL=C date -r "$i" +"$date_format_full")
1020-
echo "$i" now reading $timestamp
10211016
10221017
create_html_page "$contentfile" "$i.rebuilt" no "$title" "$timestamp" "$(get_post_author "$i")"
10231018
# keep the original timestamp!

0 commit comments

Comments
 (0)