We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6941ea4 commit 406fcaeCopy full SHA for 406fcae
src/MacVim/macvim-askpass
@@ -18,12 +18,12 @@ TITLE=${MACOS_ASKPASS_TITLE:-"SSH"}
18
DIALOG="display dialog \"$@\" default answer \"\" with title \"$TITLE\""
19
DIALOG="$DIALOG with icon caution with hidden answer"
20
21
-result=`osascript -e 'tell application "Finder"' -e "activate" -e "$DIALOG" -e 'end tell'`
+result=`osascript -e 'tell application "Finder"' -e "activate" -e "$DIALOG" -e "text returned of result" -e 'end tell'`
22
osascript -e 'tell application "MacVim"' -e "activate" -e 'end tell'
23
24
if [ "$result" = "" ]; then
25
exit 1
26
else
27
- echo "$result" | sed -e 's/^text returned://' -e 's/, button returned:.*$//'
+ echo "$result"
28
exit 0
29
fi
0 commit comments