Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
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"