From b61bbd91716e65657c4be12798de3f05ad5ba961 Mon Sep 17 00:00:00 2001 From: hk Date: Wed, 11 Oct 2017 22:05:58 +0200 Subject: [PATCH] Use command instead of which to auto locate executables --- src/tc-gen.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tc-gen.sh b/src/tc-gen.sh index 26459e2..c2c9163 100755 --- a/src/tc-gen.sh +++ b/src/tc-gen.sh @@ -2,10 +2,10 @@ VERSION="1.1.5" -TC=$(which tc) -ETHTOOL=$(which ethtool) -IP=$(which ip) -MODPROBE=$(which modprobe) +TC=$(command -v tc) +ETHTOOL=$(command -v ethtool) +IP=$(command -v ip) +MODPROBE=$(command -v modprobe) error_handler () {