From 7888fb5aef13a8a1f06406f83d869e76ce38b584 Mon Sep 17 00:00:00 2001 From: Rob van Son Date: Fri, 27 Feb 2015 16:14:51 +0100 Subject: [PATCH] Changed name of SGC app in installer --- addons/Mac_install.command | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/Mac_install.command b/addons/Mac_install.command index 9cd2e9a..679453f 100755 --- a/addons/Mac_install.command +++ b/addons/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