diff options
1 files changed, 8 insertions, 4 deletions
| -rwxr-xr-x | csg | 12 |
@@ -247,11 +247,15 @@ $($CSG_AWK -v titlef="$TITLEF" ' END { print title ORS desc ORS words }' "$file") EOF + local created edited + { read -r created; read -r edited; } << EOF +$($CSG_AWK -v file="$outf" ' BEGIN { FS = "\t" } $1 == file { - print $2 + print $2 ORS $3 exit - }' "$CSG_TIMESTAMP_FILE")) + }' "$CSG_TIMESTAMP_FILE") +EOF # Generate $CSG_MD_TO_HTML "$file" > "$outf" @@ -261,8 +265,8 @@ EOF -v title="$title" \ -v description="$descr" \ -v words="$words" \ - -v created="${timestamps[*]:0:3}" \ - -v edited="${timestamps[*]:3}" \ + -v created="$created" \ + -v edited="$edited" \ $scr_libs $scripts -f "$CSG_TMP_DIR/csg-print.awk" \ "$outf" > "$outf.tmp" mv "$outf.tmp" "$outf" |
