about summary refs log tree commit diff
path: root/afl-plot
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-21 18:51:43 +0100
committerhexcoder- <heiko@hexco.de>2020-03-21 18:51:43 +0100
commit6cbd0f1faf576a3ba9021720b0ca63a3cdd260ab (patch)
treefbfadeeea0fcaa55d5b0b43cfbe41cfce5fb74a1 /afl-plot
parentdcd9cd638b186909d86ec3c3c27fdb0ceadd0a04 (diff)
downloadafl++-6cbd0f1faf576a3ba9021720b0ca63a3cdd260ab.tar.gz
avoid calling awk for 'which' replacement, use POSIX 'command -v' instead
Diffstat (limited to 'afl-plot')
-rwxr-xr-xafl-plot2
1 files changed, 1 insertions, 1 deletions
diff --git a/afl-plot b/afl-plot
index b17af364..6ad3f790 100755
--- a/afl-plot
+++ b/afl-plot
@@ -68,7 +68,7 @@ BANNER="`cat "$1/fuzzer_stats" | grep '^afl_banner ' | cut -d: -f2- | cut -b2-`"
 
 test "$BANNER" = "" && BANNER="(none)"
 
-GNUPLOT=`type gnuplot | awk '{print $NF}' 2>/dev/null`
+GNUPLOT=`command -v gnuplot 2>/dev/null`
 
 if [ "$GNUPLOT" = "" ]; then