Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
Test source exists before copy.
Browse files Browse the repository at this point in the history
Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
  • Loading branch information
Sébastien Gross authored and Sébastien Gross committed Nov 20, 2012
1 parent 9574c69 commit 00d30c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions o-blog.el
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 00d30c0

Please sign in to comment.