Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit6c60778bd3bc3d4b9fda32c9c6d9c412463df31a (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-10-23 15:53:21 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-10-23 15:53:21 +0300
Filesb02fdfde58c3b44d1ac8a7b301730b04a1695b70
csg-6c60778bd3bc3d4b9fda32c9c6d9c412463df31a.tar
csg-6c60778bd3bc3d4b9fda32c9c6d9c412463df31a.tar.gz
csg-6c60778bd3bc3d4b9fda32c9c6d9c412463df31a.zip
Parentc250a0bbbd443ce0982b3de47d1a2768689ad9e5 (diff)
[s2] Fixed premature ending for word count
1 files changed, 1 insertions, 1 deletions
-rwxr-xr-xcsg2
diff --git a/csg b/csg
index f8ecd33..61b010f 100755
--- a/csg
+++ b/csg
@@ -238,7 +238,7 @@ $($CSG_AWK -v titlef="$TITLEF" '
stopdesc = 1
}
}
- startedGathering && /^$/ { exit }
+ stopdesc == 0 && startedGathering == 1 && /^$/ { stopdesc = 1 }
{ words += NF }
END { print title ORS desc ORS words }' "$file")
EOF