From 37528bb32594e0464cecb7cb706076c23df3bed8 Mon Sep 17 00:00:00 2001 From: Evan Klitzke Date: Tue, 20 Oct 2020 19:20:44 -0700 Subject: [PATCH] use command -v instead of which to prevent errors on stderr --- otp.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otp.bash b/otp.bash index c56f502..cc542e8 100755 --- a/otp.bash +++ b/otp.bash @@ -17,8 +17,8 @@ # [] VERSION="1.1.2" -OATH=$(which oathtool) -OTPTOOL=$(which otptool) +OATH=$(command -v oathtool) +OTPTOOL=$(command -v otptool) ## source: https://gist.github.com/cdown/1163649 urlencode() {