commit 5aa4059b866b82885ea6aacd40b955745968d835
parent a1b59dd6a949633a86b91dcc9bf23f896107182d
Author: Ayush Agarwal <ayush@fastmail.in>
Date: Mon, 29 Nov 2021 20:19:46 +0530
fix: don't check for the presence of oathtool
It's unnecessary to check for the presence of oathtool considering it's
listed as a dependency of pass-otp. The explicit check was also causing
problems for people on NixOS as mentioned in #6.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tessen b/tessen
@@ -178,7 +178,7 @@ key_action() {
key_otp() {
local tmp_otp
- if ! pass otp -h > /dev/null 2>&1 || ! is_installed oathtool; then
+ if ! pass otp -h > /dev/null 2>&1; then
_die "pass-otp is not installed"
fi
@@ -261,7 +261,7 @@ auto_type_def() {
":space") wtype -s "$tsn_delay" -k space -- ;;
":enter") wtype -s "$tsn_delay" -k Return -- ;;
":otp")
- if ! pass otp -h > /dev/null 2>&1 || ! is_installed oathtool; then
+ if ! pass otp -h > /dev/null 2>&1; then
_die "pass-otp is not installed"
else
tmp_otp="$(pass otp "$tsn_passfile")"