tRevert "index.dcgi: allow 'vegetarian' keyword anywhere in arguments" - recipe… | |
git clone git://src.adamsgaard.dk/recipes | |
Log | |
Files | |
Refs | |
Submodules | |
--- | |
commit 5f2e271789130a0ac204df854e2085395855b685 | |
parent 4917e2cf632f74d23336882d1d123078d55129c1 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 27 Aug 2021 15:42:41 +0200 | |
Revert "index.dcgi: allow 'vegetarian' keyword anywhere in arguments" | |
This reverts commit 4917e2cf632f74d23336882d1d123078d55129c1. | |
Diffstat: | |
M index.dcgi | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/index.dcgi b/index.dcgi | |
t@@ -26,8 +26,8 @@ gphfmt() { | |
searchvegetarian=0 | |
case "${arguments}" in | |
-*vegetarian*) | |
- arguments="$(printf '%s\n' "${arguments}" | sed 's/ *vegetarian *//')" | |
+vegetarian*) | |
+ arguments="$(printf "%s\n" "${arguments}" | cut -c 11-)" | |
searchvegetarian=1 | |
;; | |
esac |