summaryrefslogtreecommitdiff
path: root/tessen
diff options
context:
space:
mode:
authorAyush Agarwal <ayush@fastmail.in>2021-11-29 20:19:46 +0530
committerAyush Agarwal <ayush@fastmail.in>2021-11-29 20:19:46 +0530
commit5aa4059b866b82885ea6aacd40b955745968d835 (patch)
treecbb7fb142876e3cc0542832f479a5b423a020b8e /tessen
parenta1b59dd6a949633a86b91dcc9bf23f896107182d (diff)
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 (limited to 'tessen')
-rwxr-xr-xtessen4
1 files 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")"