Skip to content

Commit

Permalink
Use command instead of which to auto locate executables
Browse files Browse the repository at this point in the history
  • Loading branch information
hkbakke committed Oct 11, 2017
1 parent e57574b commit b61bbd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tc-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit b61bbd9

Please sign in to comment.