new_post.sh: add trailing dot after date and newline before sh

This commit is contained in:
Evilham 2024-04-10 18:35:54 +02:00
parent a999748d8c
commit bb43a9b997
Signed by: evilham
GPG key ID: AE3EE30D970886BF

View file

@ -31,13 +31,13 @@ markdown=$path/rendered.md
printf "\nPlacing and patching rendered.md: $markdown"
sed -E \
-e "s/^title:[[:space:]]+\".*\"$/title: \"eXOfàsia ~${next_number}\"/" \
-e "s/\{\{timestamp\}\}.<!--more-->/${last_date}/" \
-e "s/\{\{timestamp\}\}.<!--more-->/${last_date}./" \
"${path_to_rendered_md}" > "${markdown}"
printf "\n\nEnter issue directory..."
cd $path
printf "\n\nPaste the Hebbot curl command here to download all media files, and close the shell again with 'exit'.\n"
printf "\n\nPaste the Hebbot curl command here to download all media files, and close the shell again with 'exit'.\n\n"
# Enter new shell inside the issue directory
exec env PS1="HEBBOT ${today} (eXOfàsia ~${next_number})$ " "${SHELL}"