From 24b7c95bea7a1c37229e38aeb798b65b593bd32b Mon Sep 17 00:00:00 2001 From: Julien (jvoisin) Voisin Date: Wed, 24 Feb 2016 17:33:55 +0100 Subject: Check if `which yara` is not only a file, but is also executable --- php-malware-finder/phpmalwarefinder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-malware-finder/phpmalwarefinder b/php-malware-finder/phpmalwarefinder index acad8a7..492a476 100755 --- a/php-malware-finder/phpmalwarefinder +++ b/php-malware-finder/phpmalwarefinder @@ -6,7 +6,7 @@ CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' IONICE_BIN=$(type -P ionice) NICE_BIN=$(type -P nice) -if [ ! -f "$YARA" ] +if [ ! -x "$YARA" ] then YARA='./yara' fi -- cgit v1.3