From e90a0d1bf329b47a3335ffde0d9b2e8afc89a1d0 Mon Sep 17 00:00:00 2001 From: Julien (jvoisin) Voisin Date: Wed, 20 May 2015 10:58:07 +0200 Subject: If the config file isn't in /etc, look in the current directory --- phpmalwarefinder | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpmalwarefinder b/phpmalwarefinder index b050a7e..9fe67cf 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder @@ -3,6 +3,11 @@ YARA=$(which yara) CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' +if [ ! -a "$CONFIG_PATH" ] +then + CONFIG_PATH='./malwares.yara' +fi + show_help() { cat << EOF Usage ${0##*/} [-cfhw] ... -- cgit v1.3