From 6cbd0f1faf576a3ba9021720b0ca63a3cdd260ab Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sat, 21 Mar 2020 18:51:43 +0100 Subject: avoid calling awk for 'which' replacement, use POSIX 'command -v' instead --- afl-plot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'afl-plot') 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 -- cgit 1.4.1