]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Fixed a bug.
authorOleg Broytman <phd@phdru.name>
Sun, 4 Oct 2009 16:59:13 +0000 (16:59 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 4 Oct 2009 16:59:13 +0000 (16:59 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@91 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

dotfiles2html/dotfiles2html.py

index 160b2a509b2e670fe6e17721d7b40395aaa8c36d..491af24b2290441f75a3f8439c8aef6b5d982fdd 100755 (executable)
@@ -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)