80fa5e137672a529f65a05e396b40f0d133b2432

Author
Carlo Sala <carlosalag@protonmail.com>
Committer
Carlo Sala <carlosalag@protonmail.com>
Date

Message

fix(1password): copy password properly in `opswd`

Closes #12635

Diff

 1diff --git a/plugins/1password/opswd b/plugins/1password/opswd
 2index 0f667d2ffe8bea74af2219674ad75e28f7818378..753de9f9917c2e5041c68ea62e47d55eb4c89468 100644
 3--- a/plugins/1password/opswd
 4+++ b/plugins/1password/opswd
 5@@ -27,7 +27,7 @@ function opswd() {
 6 
 7   local password
 8   # Copy the password to the clipboard
 9-  if ! password=$(op item get "$service" --fields password 2>/dev/null); then
10+  if ! password=$(op item get "$service" --reveal --fields password 2>/dev/null); then
11     echo "error: could not obtain password for $service"
12     return 1
13   fi