Sfoglia il codice sorgente

fixed bug where drafts were appended a random postfix after re-editing

Carlos 10 anni fa
parent
commit
f90c439814
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      bb.sh

+ 0 - 2
bb.sh

@@ -608,8 +608,6 @@ EOF
             [[ "$title" ]] || title=$RANDOM
 
             draft="drafts/$title.$fmt"
-            while [ -f "$draft" ]; do draft="drafts/$title-$RANDOM.$fmt"; done
-
             mv "$TMPFILE" "$draft"
             chmod 600 "$draft"
             rm "$filename"