fix(1password): copy password properly in opswd

Closes #12635
This commit is contained in:
Carlo Sala 2024-09-05 20:20:45 +02:00
parent 95579e3ca1
commit 80fa5e1376
No known key found for this signature in database
GPG Key ID: DA6FB450C1A4FE9A

View File

@ -27,7 +27,7 @@ function opswd() {
local password
# Copy the password to the clipboard
if ! password=$(op item get "$service" --fields password 2>/dev/null); then
if ! password=$(op item get "$service" --reveal --fields password 2>/dev/null); then
echo "error: could not obtain password for $service"
return 1
fi