From 570739e4bf143323928537b78045b2867ec41d3a Mon Sep 17 00:00:00 2001 From: Julien (jvoisin) Voisin Date: Wed, 24 Feb 2016 17:37:15 +0100 Subject: Add a cool check for yara --- php-malware-finder/phpmalwarefinder | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/php-malware-finder/phpmalwarefinder b/php-malware-finder/phpmalwarefinder index 492a476..215c8ef 100755 --- a/php-malware-finder/phpmalwarefinder +++ b/php-malware-finder/phpmalwarefinder @@ -9,6 +9,11 @@ NICE_BIN=$(type -P nice) if [ ! -x "$YARA" ] then YARA='./yara' + if [ ! -x "$YARA" ] + then + echo "Unable to find yara in your PATH, and in the current directory." + exit 0 + fi fi if [ ! -f "$CONFIG_PATH" ] -- cgit v1.3