From eb2a1c0e122dc1f83bd3b220d2d00103f0dcda8c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 4 Oct 2009 16:59:13 +0000 Subject: [PATCH] Fixed a bug. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@91 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- dotfiles2html/dotfiles2html.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles2html/dotfiles2html.py b/dotfiles2html/dotfiles2html.py index 160b2a5..491af24 100755 --- a/dotfiles2html/dotfiles2html.py +++ b/dotfiles2html/dotfiles2html.py @@ -82,4 +82,5 @@ for i, (fname, ftype) in enumerate(file_types): os.rename(fname + ".html", fname + ".tmpl") if fname == 'vimrc' and os.path.exists('.' + fname): shutil.copy2('.' + fname, fname) - os.chmod(fname, 0644) + if os.path.exists(fname): + os.chmod(fname, 0644) -- 2.39.2