summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien (jvoisin) Voisin2015-05-20 10:58:07 +0200
committerJulien (jvoisin) Voisin2015-05-20 10:58:07 +0200
commite90a0d1bf329b47a3335ffde0d9b2e8afc89a1d0 (patch)
tree8aed49e0619c6e3fd1486b051f30dc0aa267cc62
parentb897cc91fbef1258607c61f6287e195bd1f1b0ac (diff)
If the config file isn't in /etc, look in the current directory
-rwxr-xr-xphpmalwarefinder5
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 @@
3YARA=$(which yara) 3YARA=$(which yara)
4CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' 4CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara'
5 5
6if [ ! -a "$CONFIG_PATH" ]
7then
8 CONFIG_PATH='./malwares.yara'
9fi
10
6show_help() { 11show_help() {
7 cat << EOF 12 cat << EOF
8Usage ${0##*/} [-cfhw] <file|folder> ... 13Usage ${0##*/} [-cfhw] <file|folder> ...