diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-24 22:42:15 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-24 22:43:32 +0100 |
| commit | aa4f63a8ce88579fa5aa23d3345d302e26f9d9d7 (patch) | |
| tree | e900051a852595fb2157281490dca94e318f79d9 /http/bin | |
| parent | 499a10837f6cb7973e416c46cef649d45a79fb1e (diff) | |
uses grep short flags for POSIX compatibility
Diffstat (limited to 'http/bin')
| -rwxr-xr-x | http/bin/blog | 4 |
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})/}" |
