diff options
| -rwxr-xr-x | php-malware-finder/phpmalwarefinder | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/php-malware-finder/phpmalwarefinder b/php-malware-finder/phpmalwarefinder index 215c8ef..8edb079 100755 --- a/php-malware-finder/phpmalwarefinder +++ b/php-malware-finder/phpmalwarefinder | |||
| @@ -19,14 +19,19 @@ fi | |||
| 19 | if [ ! -f "$CONFIG_PATH" ] | 19 | if [ ! -f "$CONFIG_PATH" ] |
| 20 | then | 20 | then |
| 21 | CONFIG_PATH='./malwares.yara' | 21 | CONFIG_PATH='./malwares.yara' |
| 22 | if [ ! -f "$CONFIG_PATH" ] | ||
| 23 | then | ||
| 24 | echo "Unable to find `malware.yara` in $CONFIG_PATH, and in the current directory." | ||
| 25 | exit 0 | ||
| 26 | fi | ||
| 22 | fi | 27 | fi |
| 23 | 28 | ||
| 24 | if [ -f "${IONICE_BIN}" ] | 29 | if [ -x "${IONICE_BIN}" ] |
| 25 | then | 30 | then |
| 26 | NICE=${IONICE_BIN} | 31 | NICE=${IONICE_BIN} |
| 27 | NICE_OPTS="-c 3" | 32 | NICE_OPTS="-c 3" |
| 28 | else | 33 | else |
| 29 | if [ -f "${NICE_BIN}" ] | 34 | if [ -x "${NICE_BIN}" ] |
| 30 | then | 35 | then |
| 31 | NICE=${NICE_BIN} | 36 | NICE=${NICE_BIN} |
| 32 | NICE_OPTS="-n 20" | 37 | NICE_OPTS="-n 20" |
