diff options
| author | jvoisin | 2018-02-21 12:07:05 +0100 |
|---|---|---|
| committer | jvoisin | 2018-02-21 12:07:05 +0100 |
| commit | 419065b85aa877df67ee9e3e2db3b3fd9727cb90 (patch) | |
| tree | 80ffb6b6589a1dee9a290707e4e7cd49d4dc197b | |
| parent | 40fe3d1307b90904a4bf95e8ef7a6368bfa5d0fe (diff) | |
Improve our non-default configuration file path handling
| -rwxr-xr-x | php-malware-finder/phpmalwarefinder | 6 |
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 | ||
| 16 | if [ ! -f "$CONFIG_PATH" ] | 16 | if [ ! -f "$CONFIG_PATH" ] |
| 17 | then | 17 | then |
| 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 | ||
| 25 | fi | 19 | fi |
| 26 | 20 | ||
| 27 | needle_in_haystack() { | 21 | needle_in_haystack() { |
