Introduction
Introduction Statistics Contact Development Disclaimer Help
tindex.dcgi: fix logic with no results - recipes - various cooking recipes
git clone git://src.adamsgaard.dk/recipes
Log
Files
Refs
Submodules
---
commit 65b22fe4f2d51c690c8e1a9e14f35b9b7c3cd693
parent c9795931746ecb8a49a7408e49848be90581898e
Author: Anders Damsgaard <[email protected]>
Date: Fri, 27 Aug 2021 20:00:01 +0200
index.dcgi: fix logic with no results
Diffstat:
M index.dcgi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/index.dcgi b/index.dcgi
t@@ -44,7 +44,7 @@ then
fi
n="$(printf '%s\n' "$results" | wc -l)"
- if [ $n -gt 0 ];
+ if [ $n -gt 0 ] && [ -n "$results" ];
then
if [ $n -gt 1 ];
then
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.