ssh-askpass-darwin: account for newer versions of Mac OS X
commit78b80aafa7114b01d3e0459685cb7e8f9376d3f6
authorDavid Aguilar <davvid@gmail.com>
Wed, 25 Dec 2013 00:40:16 +0000 (24 16:40 -0800)
committerDavid Aguilar <davvid@gmail.com>
Wed, 25 Dec 2013 00:40:16 +0000 (24 16:40 -0800)
tree63794d6b52f3c078d278aa908a8069b4289754fc
parentd599e2ad9624b0bbfbb135fe03c501ada08afdb7
ssh-askpass-darwin: account for newer versions of Mac OS X

The osascript snippet we use to prompt the user for their password has
different output on Mac OS X 10.9 Mavericks (and possibly others).

The output can start with either:
"button returned:OK, "
or
"text returned:<password>".

We were only accounting for the latter form.  Account for the new-style
output with an additional sed expression.

Signed-off-by: David Aguilar <davvid@gmail.com>
share/git-cola/bin/ssh-askpass-darwin