diff options
1 files changed, 4 insertions, 4 deletions
| -rwxr-xr-x | csg | 8 |
@@ -232,12 +232,12 @@ transform-file() { startedGathering && /^$/ { exit } END { print desc }' "$file")" local words="$($CSG_AWK '{total += NF} END{print total}' "$file")" - local timestamps=($($CSG_AWK -v file="$file" ' + local timestamps=($($CSG_AWK -v file="$outf" ' BEGIN { FS = "\t" } $1 == file { print $2 exit - }' "$file")) + }' "$CSG_TIMESTAMP_FILE")) # Generate $CSG_MD_TO_HTML "$file" > "$outf" @@ -247,8 +247,8 @@ transform-file() { -v title="$title" \ -v description="$descr" \ -v words="$words" \ - -v created="${timestamps[@]:0:3}" \ - -v edited="${timestamps[@]:4}" \ + -v created="${timestamps[*]:0:3}" \ + -v edited="${timestamps[*]:3}" \ $scr_libs $scripts -f "$CSG_TMP_DIR/csg-print.awk" \ "$outf" > "$outf.tmp" mv "$outf.tmp" "$outf" |
