From 9e6f1ced23176a5b4b424fa58ba58b04e975263f Mon Sep 17 00:00:00 2001 From: Julien Voisin Date: Tue, 24 Mar 2015 11:49:50 +0100 Subject: Add packaging stuff dor debian! --- phpmalwarefinder | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'phpmalwarefinder') diff --git a/phpmalwarefinder b/phpmalwarefinder index 66cdb92..80cf7f0 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder @@ -5,7 +5,7 @@ CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' show_help() { cat << EOF -Usage ${0##*/} [-dhw] +Usage ${0##*/} [-cfhw] -c Optional path to a configuration file -f Fast mode -h Show this help message @@ -49,6 +49,12 @@ then exit 1 fi +if [ -z $@ ] +then + show_help + exit 1 +fi + OPTS="${OPTS} -r ${CONFIG_PATH}" -$YARA $OPTS $@ \ No newline at end of file +$YARA $OPTS $@ -- cgit v1.3