From ef4776f946566e94c4b78e34df7385ea8678116e Mon Sep 17 00:00:00 2001 From: Rob van Son Date: Fri, 27 Feb 2015 16:16:46 +0100 Subject: [PATCH] Changed name of SGC app in installer --- .../Contents/Resources/Scripts/Mac_install.command | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/Mac_install.app/Contents/Resources/Scripts/Mac_install.command b/addons/Mac_install.app/Contents/Resources/Scripts/Mac_install.command index 9cd2e9a..679453f 100755 --- a/addons/Mac_install.app/Contents/Resources/Scripts/Mac_install.command +++ b/addons/Mac_install.app/Contents/Resources/Scripts/Mac_install.command @@ -7,12 +7,12 @@ if [[ `uname` == "Darwin" ]] ; then if [[ ${APPLICATIONPATH} =~ "Mac_install.app/Contents/Resources/Scripts" ]]; then cd ../../../../ fi - if [[ -d ~/Desktop/SpeakGoodChinese2.app ]]; then - osascript -e 'tell app "Finder" to display dialog "SpeakGoodChinese2.app already exists at destination"' - elif [[ -s ./SGC2/SpeakGoodChinese2.app.zip ]]; then - unzip ./SGC2/SpeakGoodChinese2.app.zip -d ~/Desktop/ + if [[ -d ~/Desktop/SpeakGoodChinese2_32.app ]]; then + osascript -e 'tell app "Finder" to display dialog "SpeakGoodChinese2_32.app already exists at destination"' + elif [[ -s ./SGC2/SpeakGoodChinese2_32.app.zip ]]; then + unzip ./SGC2/SpeakGoodChinese2_32.app.zip -d ~/Desktop/ if [[ $? != 0 ]]; then - osascript -e 'tell app "Finder" to display dialog "Installation of SpeakGoodChinese2.app encountered an error"' + osascript -e 'tell app "Finder" to display dialog "Installation of SpeakGoodChinese2_32.app encountered an error"' fi fi mkdir -p ~/Library/Preferences/SpeakGoodChinese2/wordlists -- 2.11.4.GIT