Skip to content

Conversation

dlo
Copy link
Contributor

@dlo dlo commented Nov 10, 2012

There's no need for ruby execution--security has a flag to output the password only (-w).

@indirect
Copy link
Collaborator

Cool, thanks.

indirect added a commit that referenced this pull request Nov 11, 2012
simplify keychain access example
@indirect indirect merged commit 48262f5 into defunkt:master Nov 11, 2012
@mhfs
Copy link

mhfs commented Nov 14, 2012

hey guys, just a heads up that the command proposed by @dlo is not working for me on mountain lion. the original one works well.

@dlo
Copy link
Contributor Author

dlo commented Nov 14, 2012

I'm on mountain lion and it seems to run without a problem. What security
version are you running?

Sent via iPhone

On Nov 14, 2012, at 10:24 AM, Marcelo Silveira notifications@github.com
wrote:

hey guys, just a heads up that the command proposed by
@dlohttps://github.com/dlois not working for me on mountain lion.
the original one works well.


Reply to this email directly or view it on
GitHubhttps://github.com//pull/119#issuecomment-10377466.

@mhfs
Copy link

mhfs commented Nov 14, 2012

weird. I couldn't find a version number for the security command.

here's what's happening:

➜ security 2>&1 >/dev/null find-generic-password -gs github.password password: "---edited---" ➜ security 2>&1 >/dev/null find-generic-password -gs github.password -w ➜

maybe something to do with -w directing to stdout that's being directed to /dev/null?

@dlo
Copy link
Contributor Author

dlo commented Nov 14, 2012

You know, that's definitely the problem. Taking out the >/dev/null will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants