From 5aa4059b866b82885ea6aacd40b955745968d835 Mon Sep 17 00:00:00 2001 From: Ayush Agarwal Date: Mon, 29 Nov 2021 20:19:46 +0530 Subject: 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. --- tessen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tessen b/tessen index 8926e39..57877e6 100755 --- 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")" -- cgit v1.2.3