diff options
author | afreakk <laderud@hotmail.com> | 2021-04-19 14:56:36 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-04-28 08:19:48 +0200 |
commit | 73ce4ef9e18fd5514a0748637c0f4418da3d79e9 (patch) | |
tree | c7010a140a4a1c6771e6ce080dedb969e9068f87 | |
parent | a44ac66ede33971a113757b3ca01e93fa8bd5a40 (diff) | |
download | qutebrowser-73ce4ef9e18fd5514a0748637c0f4418da3d79e9.tar.gz qutebrowser-73ce4ef9e18fd5514a0748637c0f4418da3d79e9.zip |
qute-pass: dont run pass twice when otp-only
(cherry picked from commit b04f99bcfce00c72fe7b8e59d76012141a8cb02d)
-rwxr-xr-x | misc/userscripts/qute-pass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/userscripts/qute-pass b/misc/userscripts/qute-pass index 05297c94b..71646eb69 100755 --- a/misc/userscripts/qute-pass +++ b/misc/userscripts/qute-pass @@ -240,9 +240,10 @@ def main(arguments): if not selection: return ExitCodes.SUCCESS - # If username-target is path and user asked for username-only, we don't need to run pass + # If username-target is path and user asked for username-only, we don't need to run pass. + # Or if using otp-only, it will run pass on its own. secret = None - if not (arguments.username_target == 'path' and arguments.username_only): + if not (arguments.username_target == 'path' and arguments.username_only) and not arguments.otp_only: secret = pass_(selection) username_target = selection if arguments.username_target == 'path' else secret try: |