|
|
tindex.dcgi: a few minor style changes - recipes - various cooking recipes |
|
|
 |
git clone git://src.adamsgaard.dk/recipes (git://src.adamsgaard.dk) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Submodules |
|
|
|
--- |
|
|
 |
commit ce7f1ccc9f93250f4c2282affbb25aabeb191f60 |
|
|
 |
parent 349177717bd45557055f71794e24c0088add9d90 |
|
|
 |
Author: Anders Damsgaard <anders@adamsgaard.dk> (mailto://) |
|
|
|
Date: Fri, 27 Aug 2021 18:00:50 +0200 |
|
|
|
|
|
|
|
index.dcgi: a few minor style changes |
|
|
|
|
|
|
|
Diffstat: |
|
|
|
M index.dcgi | 8 ++++---- |
|
|
|
|
|
|
|
1 file changed, 4 insertions(+), 4 deletions(-) |
|
|
|
--- |
|
|
 |
diff --git a/index.dcgi b/index.dcgi |
|
|
|
t@@ -35,7 +35,7 @@ esac |
|
|
|
|
|
|
|
if [ -n "${arguments}" ]; |
|
|
|
then |
|
|
|
- normalarguments="$(printf "${arguments}\n" | tr '+' ' ')" |
|
|
|
+ normalarguments="$(printf '%s\n' "${arguments}" | tr '+' ' ')" |
|
|
|
if [ $searchvegetarian -eq 1 ]; |
|
|
|
then |
|
|
|
results="$(./cookwhatveg $normalarguments | gphfmt)" |
|
|
|
t@@ -48,15 +48,15 @@ then |
|
|
|
then |
|
|
|
if [ $n -gt 1 ]; |
|
|
|
then |
|
|
|
- printf '\n## Results (%d recipes): "%s" \n' \ |
|
|
|
+ printf '\n## Results (%d recipes): %s\n' \ |
|
|
|
"$n" "$normalarguments" |
|
|
|
else |
|
|
|
- printf '\n## Just one result: "%s" \n' \ |
|
|
|
+ printf '\n## Just one result: %s\n' \ |
|
|
|
"$normalarguments" |
|
|
|
fi |
|
|
|
printf '\n%s\n' "$results" |
|
|
|
else |
|
|
|
- printf '\nNo recipes found for: "%s"\n' "$search" |
|
|
|
+ printf '\nNo recipes found for: %s\n' "$search" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|