Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit4409b3c0998d06ef3f06f40d1f691e8bf0328e2d (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-04-14 10:27:12 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-04-14 10:27:12 +0300
Files648889d47e13ce4ea99c94315c57b9701d82862d
csg-4409b3c0998d06ef3f06f40d1f691e8bf0328e2d.tar
csg-4409b3c0998d06ef3f06f40d1f691e8bf0328e2d.tar.gz
csg-4409b3c0998d06ef3f06f40d1f691e8bf0328e2d.zip
Parent5cc370ceb60b8571de636b30e731e2aad97b3958 (diff)
[s2] Fixed error when timestamp.txt is disabled
1 files changed, 4 insertions, 1 deletions
-rwxr-xr-xcsg5
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"