diff options
| author | Guillaume Delpierre | 2015-09-08 14:56:52 +0200 |
|---|---|---|
| committer | Guillaume Delpierre | 2015-09-08 14:56:52 +0200 |
| commit | c7638eac9798ae10b1c76fe9f6e504e1a7c88f6c (patch) | |
| tree | 2a68e2b4655dd23f63e9e5060eff324a8113363c | |
| parent | 0681490bedcd51ff7853c332b574f60a40d24208 (diff) | |
Use bash builtin
| -rwxr-xr-x | phpmalwarefinder | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder index e127a7d..6d4d047 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
| 2 | 2 | ||
| 3 | YARA=$(which yara) | 3 | YARA=$(command -v yara) |
| 4 | CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' | 4 | CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' |
| 5 | IONICE_BIN=$(which ionice) | 5 | IONICE_BIN=$(command -v ionice) |
| 6 | NICE_BIN=$(which nice) | 6 | NICE_BIN=$(command -v nice) |
| 7 | 7 | ||
| 8 | if [ ! -f "$YARA" ] | 8 | if [ ! -f "$YARA" ] |
| 9 | then | 9 | then |
