32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From 5d29ab9886f3821af963f32c8f556d144e4a5999 Mon Sep 17 00:00:00 2001
|
|
From: Dirk Mueller <dirk@dmllr.de>
|
|
Date: Thu, 28 Sep 2017 22:28:30 +0200
|
|
Subject: [PATCH] Better details for wrong-script-interpreter
|
|
|
|
It seems it is not entirely obvious that the warning
|
|
can be surpressed by not marking files as executable
|
|
that are not actually supposed to be executed.
|
|
---
|
|
FilesCheck.py | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/FilesCheck.py b/FilesCheck.py
|
|
index 87965bc4..57de8fbf 100644
|
|
--- a/FilesCheck.py
|
|
+++ b/FilesCheck.py
|
|
@@ -1276,7 +1276,10 @@ executed.''',
|
|
|
|
'wrong-script-interpreter',
|
|
'''This script uses an interpreter which is either an inappropriate one
|
|
-or located in an inappropriate directory for packaged system software.''',
|
|
+or located in an inappropriate directory for packaged system software.
|
|
+Alternatively, if the file should not be executed, then ensure that
|
|
+it is not marked as executable.
|
|
+''',
|
|
|
|
'non-executable-script',
|
|
'''This text file contains a shebang or is located in a path dedicated for
|
|
--
|
|
2.42.0.windows.2
|
|
|