Skip to content

Commit

Permalink
Fixed Keychain addItem (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcrook authored Aug 7, 2024
1 parent ad65c7d commit 9975235
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 9975235

Please sign in to comment.