Avoid appending to preexisting files

Previously, multiple md2point calls required manually removing
output text files between calls as content was always appended to
the output file. This is no longer the case with this commit, as
output files are cleared on first write.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
master
Anders Damsgaard 2020-04-26 11:09:55 +02:00 committed by Christoph Lohmann
parent 1d4661b2ba
commit fd83f17fab
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ do
fname="$(mkfilename "$snum" "$title")"
snum=$((snum + 1))
printf "\n %s\n %s\n\n" \
"$title" "$(mkunderline $titlelen "=")" >> $fname
"$title" "$(mkunderline $titlelen "=")" > $fname
;;
\#pause)
fname="$(mkfilename "$snum" "$title")"