summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-24 22:42:15 +0100
committerJoe Carstairs <me@joeac.net>2026-06-24 22:43:32 +0100
commitaa4f63a8ce88579fa5aa23d3345d302e26f9d9d7 (patch)
treee900051a852595fb2157281490dca94e318f79d9 /http
parent499a10837f6cb7973e416c46cef649d45a79fb1e (diff)
uses grep short flags for POSIX compatibility
Diffstat (limited to 'http')
-rwxr-xr-xhttp/bin/blog4
1 files changed, 2 insertions, 2 deletions
diff --git a/http/bin/blog b/http/bin/blog
index d243596..46be82f 100755
--- a/http/bin/blog
+++ b/http/bin/blog
@@ -102,8 +102,8 @@ do
export POST_TITLE="$name"
cat "$entry" | eval "${postprocess_cmd}" > "$dest"
else
- export POST_TITLE="$(grep --regexp "^# " --max-count 1 "$entry" | cut -c3-)"
- cat "$entry" | grep --regexp "^# " --invert-match | eval "$postprocess_cmd" > "$dest"
+ export POST_TITLE="$(grep -e "^# " -m 1 "$entry" | cut -c3-)"
+ cat "$entry" | grep -e "^# " -v | eval "$postprocess_cmd" > "$dest"
fi
cat "$entry" | eval "$extract_args_cmd" > "${dest}.args"
echo "Processed ${entry#$(dirname ${BLOGS})/} to ${dest#$(dirname ${SRC})/}"