summaryrefslogtreecommitdiff
path: root/misc/userscripts
diff options
context:
space:
mode:
authorafreakk <laderud@hotmail.com>2021-04-19 14:56:36 +0200
committerafreakk <laderud@hotmail.com>2021-04-19 14:56:36 +0200
commitb04f99bcfce00c72fe7b8e59d76012141a8cb02d (patch)
tree9802a39e62d031dbe8146665dabfe532649773d4 /misc/userscripts
parent0c1414c6aaa419cba812b751c97c87e10cd6009e (diff)
downloadqutebrowser-b04f99bcfce00c72fe7b8e59d76012141a8cb02d.tar.gz
qutebrowser-b04f99bcfce00c72fe7b8e59d76012141a8cb02d.zip
qute-pass: dont run pass twice when otp-only
Diffstat (limited to 'misc/userscripts')
-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: