Open michaelhaaf opened 4 months ago
Assumed that you are already using version 1.1.2, just install the missing dependency or maybe stick to v1.1.1
For Debian install libpass-otp-perl For Arch install perl-pass-otp from AUR
If you plan to use Steam OTP with pass-otp, then the dependency is mandatory as oathtool doesn't understand digits
less than 6 in the URI
Problem
(NOTE: edits made).
The runtime dependency
otptool
~is not listed in the installation requirements (unless I'm missing something). I've done a search online and I cannot find a binary/library that corresponds tootptool
.~ is listed as optional (Pass::OTP), but not having it installed causes error messages to print to stderr.The problematic line of code is here.
https://github.com/tadfisher/pass-otp/blob/a364d2a71ad24158a009c266102ce0d91149de67/otp.bash#L21
Here is the PR that added it: https://github.com/tadfisher/pass-otp/commit/0aadd4c82cf190ae8ac9c08e7eb142716ed33a85
Result
It's not devastating,
oathtool
works and the correct OTP is ultimately printed on the last line ofstdout
.That said, the
which
command from Line 21 fails and is printed tostderr
:Resolution
~Does a tool referred to as
otptool
still exist? Am I missing something? Should it be added to the list of requirements? Or is it redundant sinceoathtool
works without it, and then should it be removed? Maybe there's an easy answer I'm missing.~Sorry, I forgot to check the git blame when I first opened the ticket. Some actual ideas:
which
command to/dev/null
. For my machine, where I don't have Perl norPass::OTP
but I do haveoathtool
, that would look like this: