| Fixing search formatting. - gopherhole - My gopherhole source code. | |
| git clone git://jay.scot/gopherhole | |
| Log | |
| Files | |
| Refs | |
| --- | |
| commit 6ba5831af8364bbeb721c9a7504871a7e5b425a5 | |
| parent d4a5bb06f81e6a5a1c2d046a4310879396277eb1 | |
| Author: Jay Scott <[email protected]> | |
| Date: Wed, 10 Dec 2025 19:16:07 +0000 | |
| Fixing search formatting. | |
| Diffstat: | |
| M meta/search.sh | 10 +++++----- | |
| 1 file changed, 5 insertions(+), 5 deletions(-) | |
| --- | |
| diff --git a/meta/search.sh b/meta/search.sh | |
| @@ -11,10 +11,10 @@ content="phlog/txt/*.txt" | |
| keyword="$1" | |
| for file in $root/$content; do | |
| - if [ -f "$file" ]; then | |
| - if grep -iq "$keyword" "$file"; then | |
| + if [ -f "$file" ]; then | |
| + if grep -iq "$keyword" "$file"; then | |
| header=$(grep '^--\[' "$file" | head -n 1 | sed 's/^--… | |
| - printf "[0|%s|/phlog/txt/%s|server|port]\n" "$header" "$(basename … | |
| - fi | |
| - fi | |
| + printf "[0|%s|/phlog/txt/%s|server|port]\n" "$header" … | |
| + fi | |
| + fi | |
| done |