diff options
| author | Julien (jvoisin) Voisin | 2016-02-24 17:33:55 +0100 |
|---|---|---|
| committer | Julien (jvoisin) Voisin | 2016-02-24 17:33:55 +0100 |
| commit | 24b7c95bea7a1c37229e38aeb798b65b593bd32b (patch) | |
| tree | 606a059486c7fa5fbe43df2815a371aa1daf29cd | |
| parent | 5d7838f2b779a0369fd8c98c1abd1a6299d6dfc7 (diff) | |
Check if `which yara` is not only a file, but is also executable
| -rwxr-xr-x | php-malware-finder/phpmalwarefinder | 2 |
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' | |||
| 6 | IONICE_BIN=$(type -P ionice) | 6 | IONICE_BIN=$(type -P ionice) |
| 7 | NICE_BIN=$(type -P nice) | 7 | NICE_BIN=$(type -P nice) |
| 8 | 8 | ||
| 9 | if [ ! -f "$YARA" ] | 9 | if [ ! -x "$YARA" ] |
| 10 | then | 10 | then |
| 11 | YARA='./yara' | 11 | YARA='./yara' |
| 12 | fi | 12 | fi |
