diff options
| author | Julien (jvoisin) Voisin | 2015-05-20 10:58:07 +0200 |
|---|---|---|
| committer | Julien (jvoisin) Voisin | 2015-05-20 10:58:07 +0200 |
| commit | e90a0d1bf329b47a3335ffde0d9b2e8afc89a1d0 (patch) | |
| tree | 8aed49e0619c6e3fd1486b051f30dc0aa267cc62 | |
| parent | b897cc91fbef1258607c61f6287e195bd1f1b0ac (diff) | |
If the config file isn't in /etc, look in the current directory
| -rwxr-xr-x | phpmalwarefinder | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder index b050a7e..9fe67cf 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder | |||
| @@ -3,6 +3,11 @@ | |||
| 3 | YARA=$(which yara) | 3 | YARA=$(which yara) |
| 4 | CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' | 4 | CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' |
| 5 | 5 | ||
| 6 | if [ ! -a "$CONFIG_PATH" ] | ||
| 7 | then | ||
| 8 | CONFIG_PATH='./malwares.yara' | ||
| 9 | fi | ||
| 10 | |||
| 6 | show_help() { | 11 | show_help() { |
| 7 | cat << EOF | 12 | cat << EOF |
| 8 | Usage ${0##*/} [-cfhw] <file|folder> ... | 13 | Usage ${0##*/} [-cfhw] <file|folder> ... |
