Skip to content

Commit

Permalink
Fixed Keychain addItem
Browse files Browse the repository at this point in the history
Renamed addPassword back to addItem and removed the  concatenation of the cmd string that added the password a second time.
  • Loading branch information
andrewcrook authored Jan 5, 2024
1 parent 5de0550 commit c0fabf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Keychain.spoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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")

Expand Down

0 comments on commit c0fabf8

Please sign in to comment.