keep .html extension when editing

(to make synthax highlight work)
This commit is contained in:
Alexey Shpakovsky 2014-03-01 21:02:13 +01:00 committed by Aleksei Shpakovskii
parent 175810b7a3
commit b3ea05ecd0

2
bb.sh
View File

@ -354,7 +354,7 @@ edit() {
filename="$1"
else
# Create the content file
TMPFILE="$1.$RANDOM"
TMPFILE="$(basename $1).$RANDOM.html"
# Title
echo "$(get_post_title $1)" > "$TMPFILE"
# Post text with plaintext tags