From b3ea05ecd09e6839b2b93d009617409ec231efce Mon Sep 17 00:00:00 2001 From: Alexey Shpakovsky Date: Sat, 1 Mar 2014 21:02:13 +0100 Subject: [PATCH] keep .html extension when editing (to make synthax highlight work) --- bb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bb.sh b/bb.sh index cc1b688..26829a5 100755 --- a/bb.sh +++ b/bb.sh @@ -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