Explorar o código

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

Carlos %!s(int64=10) %!d(string=hai) anos
pai
achega
f90c439814
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  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"