allow user to cancel automatic installation of dependencies during install
parent
77e1accb37
commit
6b80b3dadd
|
@ -11,12 +11,22 @@ fi
|
||||||
|
|
||||||
displayMessage()
|
displayMessage()
|
||||||
{
|
{
|
||||||
/usr/bin/osascript > /dev/null <<-EOF
|
/usr/bin/osascript > /dev/null << EOF
|
||||||
tell application "System Events"
|
tell application "System Events"
|
||||||
activate
|
activate
|
||||||
display dialog "$@" buttons {"Ok"}
|
set question to display dialog "$@"
|
||||||
|
end tell
|
||||||
|
return button returned of question
|
||||||
|
EOF
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
/usr/bin/osascript > /dev/null << EOF
|
||||||
|
tell application "System Events"
|
||||||
|
activate
|
||||||
|
display dialog "User Cancelled Install" buttons {"Ok"}
|
||||||
end tell
|
end tell
|
||||||
EOF
|
EOF
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#Testing for python2.7, which we need and is not always installed on MacOS 1.6
|
#Testing for python2.7, which we need and is not always installed on MacOS 1.6
|
||||||
|
|
Loading…
Reference in New Issue