aboutsummaryrefslogtreecommitdiff
path: root/markdown2pdf
diff options
context:
space:
mode:
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"