Created
July 10, 2015 07:09
-
-
Save scop/1ac1ed97917e65eb7806 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- FilesCheck.py | |
+++ FilesCheck.py | |
@@ -1107,7 +1107,7 @@ | |
# ...but executed ones should | |
elif res or mode & 0111 != 0 or script_regex.search(f): | |
if res: | |
- if not interpreter_regex.search(res.group(1)): | |
+ if mode & 0111 != 0 and not interpreter_regex.search(res.group(1)): | |
printError(pkg, 'wrong-script-interpreter', f, '"' + res.group(1) + '"') | |
elif not nonexec_file and not (lib_path_regex.search(f) and f.endswith('.la')): | |
printError(pkg, 'script-without-shebang', f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment