summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2018-02-21 12:07:05 +0100
committerjvoisin2018-02-21 12:07:05 +0100
commit419065b85aa877df67ee9e3e2db3b3fd9727cb90 (patch)
tree80ffb6b6589a1dee9a290707e4e7cd49d4dc197b
parent40fe3d1307b90904a4bf95e8ef7a6368bfa5d0fe (diff)
Improve our non-default configuration file path handling
-rwxr-xr-xphp-malware-finder/phpmalwarefinder6
1 files changed, 0 insertions, 6 deletions
diff --git a/php-malware-finder/phpmalwarefinder b/php-malware-finder/phpmalwarefinder
index 63b1f1c..b3ce7b7 100755
--- a/php-malware-finder/phpmalwarefinder
+++ b/php-malware-finder/phpmalwarefinder
@@ -15,13 +15,7 @@ fi
15 15
16if [ ! -f "$CONFIG_PATH" ] 16if [ ! -f "$CONFIG_PATH" ]
17then 17then
18 OLD_PATH=$CONFIG_PATH
19 CONFIG_PATH='./php.yar' 18 CONFIG_PATH='./php.yar'
20 if [ ! -f "$CONFIG_PATH" ]
21 then
22 echo "Unable to find 'php.yar' in $OLD_PATH, and in the current directory."
23 exit 0
24 fi
25fi 19fi
26 20
27needle_in_haystack() { 21needle_in_haystack() {