summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblotus2015-09-08 15:35:40 +0200
committerblotus2015-09-08 15:35:40 +0200
commit7070de185d4fc85238d49a43c7153e34ae2533f7 (patch)
tree2af1344bd52bbf5a985cea920714ff4d7605a516
parent2c70b9f815c6f795a7c1fbc5640f38c34f2e3dcb (diff)
parent2c8a4a30946bcb1c881f417b85c96914786cf128 (diff)
Merge pull request #7 from gdelpierre/master
Use bash built-in and use portability shebang
-rwxr-xr-xphpmalwarefinder10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder
index 1fbe4cf..c49a7bd 100755
--- a/phpmalwarefinder
+++ b/phpmalwarefinder
@@ -1,9 +1,9 @@
1#!/bin/bash 1#!/usr/bin/env bash
2 2
3YARA=$(which yara) 3YARA=$(type -P yara)
4CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' 4CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara'
5IONICE_BIN=$(which ionice) 5IONICE_BIN=$(type -P ionice)
6NICE_BIN=$(which nice) 6NICE_BIN=$(type -P nice)
7 7
8if [ ! -f "$YARA" ] 8if [ ! -f "$YARA" ]
9then 9then
@@ -81,7 +81,7 @@ fi
81 81
82if [ ! -e ${NICE} ] 82if [ ! -e ${NICE} ]
83then 83then
84 echo "no nice program available. Please install ionice or nice." 84 echo "No nice program available. Please install ionice or nice."
85 exit 1 85 exit 1
86fi 86fi
87 87