diff options
| author | Guillaume Delpierre | 2015-09-08 15:28:41 +0200 |
|---|---|---|
| committer | Guillaume Delpierre | 2015-09-08 15:28:41 +0200 |
| commit | 2c8a4a30946bcb1c881f417b85c96914786cf128 (patch) | |
| tree | 2af1344bd52bbf5a985cea920714ff4d7605a516 | |
| parent | ae011125e83c8695295b1612a428ef300b3ce095 (diff) | |
Use type built-in instead of command
| -rwxr-xr-x | phpmalwarefinder | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder index d6081e1..c49a7bd 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
| 2 | 2 | ||
| 3 | YARA=$(command -v yara) | 3 | YARA=$(type -P yara) |
| 4 | CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' | 4 | CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' |
| 5 | IONICE_BIN=$(command -v ionice) | 5 | IONICE_BIN=$(type -P ionice) |
| 6 | NICE_BIN=$(command -v nice) | 6 | NICE_BIN=$(type -P nice) |
| 7 | 7 | ||
| 8 | if [ ! -f "$YARA" ] | 8 | if [ ! -f "$YARA" ] |
| 9 | then | 9 | then |
