Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scop/1ac1ed97917e65eb7806 to your computer and use it in GitHub Desktop.
Save scop/1ac1ed97917e65eb7806 to your computer and use it in GitHub Desktop.
--- 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