summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rwxr-xr-xhttp/bin/blog7
1 files changed, 3 insertions, 4 deletions
diff --git a/http/bin/blog b/http/bin/blog
index 5eb8961..d243596 100755
--- a/http/bin/blog
+++ b/http/bin/blog
@@ -99,11 +99,10 @@ do
dest="${SRC}/${log_name}/${name}${layout_ext}.upphtml"
if [ $use_filenames_for_titles -eq 1 ]
then
- title="$name"
- cat "$entry" | eval "POST_TITLE=\"${title}\" ${postprocess_cmd}" > "$dest"
+ export POST_TITLE="$name"
+ cat "$entry" | eval "${postprocess_cmd}" > "$dest"
else
- title="$(grep --regexp "^# " --max-count 1 "$entry" | cut -c3-)"
- export POST_TITLE="$title"
+ export POST_TITLE="$(grep --regexp "^# " --max-count 1 "$entry" | cut -c3-)"
cat "$entry" | grep --regexp "^# " --invert-match | eval "$postprocess_cmd" > "$dest"
fi
cat "$entry" | eval "$extract_args_cmd" > "${dest}.args"