Skip to content
Browse files

Test source exists before copy.

Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
  • Loading branch information...
1 parent 9574c69 commit 00d30c0d1aab2cb938e3fd2ac22cc0a683123cc0 Sébastien Gross committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 o-blog.el
View
5 o-blog.el
@@ -5,7 +5,7 @@
;; Author: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
;; Keywords: emacs,
;; Created: 2012-01-04
-;; Last changed: 2012-11-20 11:55:30
+;; Last changed: 2012-11-20 12:29:11
;; Licence: WTFPL, grab your copy here: http://sam.zoy.org/wtfpl/
;; This file is NOT part of GNU Emacs.
@@ -391,7 +391,8 @@ A copy function COPYF and its arguments ARGS could be specified."
(t 'copy-file)))
(args (or args
(when (eq 'copy-file copyf) '(t t t)))))
- (apply copyf src dst args)))
+ (when (file-exists-p src)
+ (apply copyf src dst args))))
(defun org-blog-publish-run-processes-sentinel (proc change)

0 comments on commit 00d30c0

Please sign in to comment.
Something went wrong with that request. Please try again.