diff options
| author | blotus | 2015-09-08 15:35:40 +0200 |
|---|---|---|
| committer | blotus | 2015-09-08 15:35:40 +0200 |
| commit | 7070de185d4fc85238d49a43c7153e34ae2533f7 (patch) | |
| tree | 2af1344bd52bbf5a985cea920714ff4d7605a516 | |
| parent | 2c70b9f815c6f795a7c1fbc5640f38c34f2e3dcb (diff) | |
| parent | 2c8a4a30946bcb1c881f417b85c96914786cf128 (diff) | |
Merge pull request #7 from gdelpierre/master
Use bash built-in and use portability shebang
| -rwxr-xr-x | phpmalwarefinder | 10 |
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 | ||
| 3 | YARA=$(which yara) | 3 | YARA=$(type -P yara) |
| 4 | CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' | 4 | CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' |
| 5 | IONICE_BIN=$(which ionice) | 5 | IONICE_BIN=$(type -P ionice) |
| 6 | NICE_BIN=$(which nice) | 6 | NICE_BIN=$(type -P nice) |
| 7 | 7 | ||
| 8 | if [ ! -f "$YARA" ] | 8 | if [ ! -f "$YARA" ] |
| 9 | then | 9 | then |
| @@ -81,7 +81,7 @@ fi | |||
| 81 | 81 | ||
| 82 | if [ ! -e ${NICE} ] | 82 | if [ ! -e ${NICE} ] |
| 83 | then | 83 | then |
| 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 |
| 86 | fi | 86 | fi |
| 87 | 87 | ||
