This commit is contained in:
Florian 2026-01-07 16:40:40 -08:00 committed by GitHub
commit 55b356fc40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -186,7 +186,10 @@ def pass_(path):
def pass_otp(path):
if arguments.mode == "gopass":
return _run_pass(['otp', '-o', path])
return _run_pass(['otp', path])
result = _run_pass(['otp', path])
# Remove the git output pass-otp prints in HOTP mode, by taking only the last line
# Using the --quiet option might be a better solution in the future (see PR #7380)
return result.split('\n')[-1]
def dmenu(items, invocation):