summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-04-28 08:17:53 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-04-28 08:17:53 +0200
commit79f3bf76e846ed60f2918bb8e4c130c584bb1c1e (patch)
treedb0b6795ee4bda018acffeb097bb2914b17c3b1c /misc
parent669a6faee2f651c62ba4c0345004f18b69d1d4da (diff)
parentb04f99bcfce00c72fe7b8e59d76012141a8cb02d (diff)
downloadqutebrowser-79f3bf76e846ed60f2918bb8e4c130c584bb1c1e.tar.gz
qutebrowser-79f3bf76e846ed60f2918bb8e4c130c584bb1c1e.zip
Merge remote-tracking branch 'origin/pr/6410'
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/userscripts/qute-pass5
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: