diff options
author | hexcoder- <heiko@hexco.de> | 2020-03-21 18:51:43 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-03-21 18:51:43 +0100 |
commit | 6cbd0f1faf576a3ba9021720b0ca63a3cdd260ab (patch) | |
tree | fbfadeeea0fcaa55d5b0b43cfbe41cfce5fb74a1 /afl-plot | |
parent | dcd9cd638b186909d86ec3c3c27fdb0ceadd0a04 (diff) | |
download | afl++-6cbd0f1faf576a3ba9021720b0ca63a3cdd260ab.tar.gz |
avoid calling awk for 'which' replacement, use POSIX 'command -v' instead
Diffstat (limited to 'afl-plot')
-rwxr-xr-x | afl-plot | 2 |
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 |