summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien (jvoisin) Voisin2016-02-24 17:33:55 +0100
committerJulien (jvoisin) Voisin2016-02-24 17:33:55 +0100
commit24b7c95bea7a1c37229e38aeb798b65b593bd32b (patch)
tree606a059486c7fa5fbe43df2815a371aa1daf29cd
parent5d7838f2b779a0369fd8c98c1abd1a6299d6dfc7 (diff)
Check if `which yara` is not only a file, but is also executable
-rwxr-xr-xphp-malware-finder/phpmalwarefinder2
1 files changed, 1 insertions, 1 deletions
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'
6IONICE_BIN=$(type -P ionice) 6IONICE_BIN=$(type -P ionice)
7NICE_BIN=$(type -P nice) 7NICE_BIN=$(type -P nice)
8 8
9if [ ! -f "$YARA" ] 9if [ ! -x "$YARA" ]
10then 10then
11 YARA='./yara' 11 YARA='./yara'
12fi 12fi