summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Delpierre2015-09-08 15:28:41 +0200
committerGuillaume Delpierre2015-09-08 15:28:41 +0200
commit2c8a4a30946bcb1c881f417b85c96914786cf128 (patch)
tree2af1344bd52bbf5a985cea920714ff4d7605a516
parentae011125e83c8695295b1612a428ef300b3ce095 (diff)
Use type built-in instead of command
-rwxr-xr-xphpmalwarefinder6
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
3YARA=$(command -v yara) 3YARA=$(type -P yara)
4CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' 4CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara'
5IONICE_BIN=$(command -v ionice) 5IONICE_BIN=$(type -P ionice)
6NICE_BIN=$(command -v nice) 6NICE_BIN=$(type -P nice)
7 7
8if [ ! -f "$YARA" ] 8if [ ! -f "$YARA" ]
9then 9then