From 7054a932876c1900956a19f0dd976f6d86a364dd Mon Sep 17 00:00:00 2001 From: Brendan Ragan Date: Tue, 30 Jan 2024 10:26:23 +0800 Subject: [PATCH] add stuff to handle prompts --- ssh-askpass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssh-askpass b/ssh-askpass index 5f05e88..a3a5377 100755 --- a/ssh-askpass +++ b/ssh-askpass @@ -33,6 +33,9 @@ on run argv display dialog args with icon agent default button {get localized string of "OK"} default answer "" end if return result's text returned + else if args contains "host" then + display dialog args with icon agent buttons {"No", "Yes"} + return result's text else display dialog args with icon agent default button 1 giving up after dialog_timeout if gave up of result then