From c0fabf8aa270dce00561339c2631bf1eab457b2d Mon Sep 17 00:00:00 2001 From: andrewcrook <803618+andrewcrook@users.noreply.github.com> Date: Fri, 5 Jan 2024 15:46:00 +0000 Subject: [PATCH] Fixed Keychain addItem Renamed addPassword back to addItem and removed the concatenation of the cmd string that added the password a second time. --- Source/Keychain.spoon/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Keychain.spoon/init.lua b/Source/Keychain.spoon/init.lua index 963c5006..afdf2759 100644 --- a/Source/Keychain.spoon/init.lua +++ b/Source/Keychain.spoon/init.lua @@ -150,7 +150,7 @@ end --- * comment - comment --- * label - label (defaults to service name) --- * service - service name (required) -function obj:addPassword(options) +function obj:addItem(options) local cmd="/usr/bin/security add-generic-password" @@ -160,7 +160,6 @@ function obj:addPassword(options) end end - cmd = cmd .. "-w " .. options.password local handle = io.popen(cmd) local result = handle:read("*a")