X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosui%2Finstall-macosx;h=e97a002ae2e08fb4f7a7219efa86b2c4a87c7ae4;hb=81b1c60faefc6b6101597a3e09cf76f5c31178da;hp=8f0067e5a030190d3fbb25656a8338361a4b57bf;hpb=583a749724700845d2d3552a0d3a759f16b25cfe;p=fw%2Faltos diff --git a/altosui/install-macosx b/altosui/install-macosx index 8f0067e5..e97a002a 100755 --- a/altosui/install-macosx +++ b/altosui/install-macosx @@ -8,6 +8,13 @@ case `id -u` in ;; *) SUDO_ASKPASS="${dir}/ask-pass" sudo -A "$0" "$@" + case $? in + 0) + ;; + *) + osascript -e 'display dialog "Installation failed. Incorrect password?" buttons {"OK"} default button 1 with title "Installation Status"' > /dev/null + ;; + esac exit 0 ;; esac @@ -44,4 +51,5 @@ for file in *; do ;; esac done +open "${LIBRARY}" osascript -e 'display dialog "Installation of'"${INSTALLED}"' complete" with title "Installation Complete" buttons {"OK"} default button 1' >/dev/null