diff options
author | Carlos Fenollosa <carlos.fenollosa@gmail.com> | 2016-04-26 16:29:25 +0200 |
---|---|---|
committer | Carlos Fenollosa <carlos.fenollosa@gmail.com> | 2016-04-26 16:29:25 +0200 |
commit | 2b8b02ac58e713980db2b762c77b4bfd4021a48d (patch) | |
tree | 10255f562a6c1794e359de5a1d9e5484aae63457 | |
parent | a08f47bb695561c70970f3876e59ae84c9c657c6 (diff) |
simplified a couple commands and removed debug echos
-rwxr-xr-x | bb.sh | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1010,14 +1010,9 @@ rebuild_all_entries() { # Read timestamp from post, if present, and sync file timestamp timestamp=$(awk '/<!-- '$date_inpost': .+ -->/ { print }' "$i" | cut -d '#' -f 2) - if [[ -n $timestamp ]]; then - echo "$i" timestamp present $timestamp - # Convert to timestamp for touch - touch -t "$timestamp" "$i" - fi + [[ -n $timestamp ]] && touch -t "$timestamp" "$i" # Read timestamp from file in correct format for 'create_html_page' 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")" # keep the original timestamp! |