aboutsummaryrefslogtreecommitdiff
path: root/markdown2pdf
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-11-22 18:07:33 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-11-22 18:07:33 +0000
commit81c3bd6a54bc4cc878446af5a932be2e49c5a788 (patch)
tree6f2c3768c80a852cd1b0ce02c5efe1324cbddcce /markdown2pdf
parent4c387a4bc755ea3531787e2e51a6b83a9473259e (diff)
downloadpandoc-81c3bd6a54bc4cc878446af5a932be2e49c5a788.tar.gz
Modified markdown2pdf so as not to create a backup file.
Resolves Issue #166. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1624 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'markdown2pdf')
-rwxr-xr-xmarkdown2pdf12
1 files changed, 1 insertions, 11 deletions
diff --git a/markdown2pdf b/markdown2pdf
index ab0f3ae78..faeafc174 100755
--- a/markdown2pdf
+++ b/markdown2pdf
@@ -125,16 +125,6 @@ fi
done
) || exit $?
-is_target_exists=
-if [ -f "$destname" ]; then
- is_target_exists=1
- mv "$destname" "$destname~"
-fi
-
mv -f $THIS_TEMPDIR/$texname.pdf "$destname"
-errn "Created $destname"
-[ -z "$is_target_exists" ] || {
- errn " (previous file has been backed up as $destname~)"
-}
-err .
+err "Created $destname"