|
|
tindex.dcgi: print result listing with one match - recipes - various cooking recipes |
|
|
 |
git clone git://src.adamsgaard.dk/recipes (git://src.adamsgaard.dk) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Submodules |
|
|
|
--- |
|
|
 |
commit c9795931746ecb8a49a7408e49848be90581898e |
|
|
 |
parent ce7f1ccc9f93250f4c2282affbb25aabeb191f60 |
|
|
 |
Author: Anders Damsgaard <anders@adamsgaard.dk> (mailto://) |
|
|
|
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(-) |
|
|
|
--- |
|
|
 |
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 ]; |
|