diff options
| author | Julien (jvoisin) Voisin | 2016-02-24 17:39:50 +0100 |
|---|---|---|
| committer | Julien (jvoisin) Voisin | 2016-02-24 17:39:50 +0100 |
| commit | 1df1b7777047bf71e574b675fc47b67ba41c122e (patch) | |
| tree | 1337ea66755f543e973b8a0ecb3e7cd59c57c027 | |
| parent | 570739e4bf143323928537b78045b2867ec41d3a (diff) | |
Add even moar sanity check
| -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" |
