tindex.dcgi: print result listing with one match - recipes - various cooking recipes
(HTM) git clone git://src.adamsgaard.dk/recipes
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
---
(DIR) commit c9795931746ecb8a49a7408e49848be90581898e
(DIR) parent ce7f1ccc9f93250f4c2282affbb25aabeb191f60
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 27 Aug 2021 19:52:41 +0200
index.dcgi: print result listing with one match
Diffstat:
M index.dcgi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/index.dcgi b/index.dcgi
t@@ -43,7 +43,7 @@ then
results="$(./cookwhat $normalarguments | gphfmt)"
fi
- n="$(printf '%s' "$results" | wc -l)"
+ n="$(printf '%s\n' "$results" | wc -l)"
if [ $n -gt 0 ];
then
if [ $n -gt 1 ];