summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien (jvoisin) Voisin2016-02-24 17:39:50 +0100
committerJulien (jvoisin) Voisin2016-02-24 17:39:50 +0100
commit1df1b7777047bf71e574b675fc47b67ba41c122e (patch)
tree1337ea66755f543e973b8a0ecb3e7cd59c57c027
parent570739e4bf143323928537b78045b2867ec41d3a (diff)
Add even moar sanity check
-rwxr-xr-xphp-malware-finder/phpmalwarefinder9
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
19if [ ! -f "$CONFIG_PATH" ] 19if [ ! -f "$CONFIG_PATH" ]
20then 20then
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
22fi 27fi
23 28
24if [ -f "${IONICE_BIN}" ] 29if [ -x "${IONICE_BIN}" ]
25then 30then
26 NICE=${IONICE_BIN} 31 NICE=${IONICE_BIN}
27 NICE_OPTS="-c 3" 32 NICE_OPTS="-c 3"
28else 33else
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"