Explorar o código

keep .html extension when editing

(to make synthax highlight work)
Alexey Shpakovsky %!s(int64=11) %!d(string=hai) anos
pai
achega
b3ea05ecd0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bb.sh

+ 1 - 1
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