diff options
author | Ayush Agarwal <ayush@fastmail.in> | 2021-11-29 20:19:46 +0530 |
---|---|---|
committer | Ayush Agarwal <ayush@fastmail.in> | 2021-11-29 20:19:46 +0530 |
commit | 5aa4059b866b82885ea6aacd40b955745968d835 (patch) | |
tree | cbb7fb142876e3cc0542832f479a5b423a020b8e /tessen | |
parent | a1b59dd6a949633a86b91dcc9bf23f896107182d (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-x | tessen | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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")" |