From: Oleg Broytman Date: Sun, 4 Oct 2009 16:59:13 +0000 (+0000) Subject: Fixed a bug. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=eb2a1c0e122dc1f83bd3b220d2d00103f0dcda8c;p=phdru.name%2Fphdru.name.git Fixed a bug. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@91 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- 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)