X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=dotfiles2html%2Fdotfiles2html.py;h=491af24b2290441f75a3f8439c8aef6b5d982fdd;hb=eb2a1c0e122dc1f83bd3b220d2d00103f0dcda8c;hp=160b2a509b2e670fe6e17721d7b40395aaa8c36d;hpb=d840806118bfcdfa393cf53f8b9406d2246f5d6e;p=phdru.name%2Fphdru.name.git 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)