From 4409b3c0998d06ef3f06f40d1f691e8bf0328e2d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 14 Apr 2024 10:27:12 +0300 Subject: [s2] Fixed error when timestamp.txt is disabled --- csg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/csg b/csg index 5c96dff..eb2a7c8 100755 --- a/csg +++ b/csg @@ -253,7 +253,9 @@ $($CSG_AWK -v titlef="$TITLEF" ' EOF local created edited - { read -r created; read -r edited; } << EOF + if [ -f "$CSG_TIMESTAMP_FILE" ] + then + { read -r created; read -r edited; } << EOF $($CSG_AWK -v file="$outf" ' BEGIN { FS = "\t" } $1 == file { @@ -261,6 +263,7 @@ $($CSG_AWK -v file="$outf" ' exit }' "$CSG_TIMESTAMP_FILE") EOF + fi # Generate $CSG_MD_TO_HTML "$file" > "$outf" -- cgit v1.3.1-23-gd82d