remove unnecessary backslash from grep expression in http/bin/blog

This commit is contained in:
2026-06-12 10:12:25 +01:00
parent 0d8f27357a
commit 6cd664dba6
+2 -2
View File
@@ -96,9 +96,9 @@ do
title="$name"
cat "$entry" | eval "POST_TITLE=\"${title}\" ${postprocess_cmd}" > "$dest"
else
title="$(grep --regexp "^\# " --max-count 1 "$entry" | cut -c3-)"
title="$(grep --regexp "^# " --max-count 1 "$entry" | cut -c3-)"
export POST_TITLE="$title"
cat "$entry" | grep --regexp "^\# " --invert-match | eval "$postprocess_cmd" > "$dest"
cat "$entry" | grep --regexp "^# " --invert-match | eval "$postprocess_cmd" > "$dest"
fi
cat "$entry" | eval "$extract_args_cmd" > "${dest}.args"
echo "Processed ${entry#$(dirname ${BLOGS})/} to ${dest#$(dirname ${SRC})/}"