diff options
Diffstat (limited to 'fixshebangs.py')
-rwxr-xr-x | fixshebangs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fixshebangs.py b/fixshebangs.py index e2202c9a205f..eda559437d47 100755 --- a/fixshebangs.py +++ b/fixshebangs.py @@ -50,7 +50,7 @@ def check_files(arg, dirname, fnames): if fname.startswith("."): continue fpath = path.join(dirname, fname) - if not path.isfile(fpath): + if not path.isfile(fpath) or path.islink(fpath): continue with open(fpath, "rU") as fd: line = fd.readline().strip() |