3 # Copy wordlists to SpeakGoodChinese preferences directory
5 if [[ `/bin/uname` != "Darwin" ]] ; then
7 if [[ -s "~/Desktop/SpeakGoodChinese2" && -n ZENITY
]]; then
8 zenity
--info --text="SpeakGoodChinese2 already exists at destination"
9 elif [[ -s "./SGC2/SpeakGoodChinese2_Linux64.zip" ]]; then
10 if [[ -d "~/Desktop" ]]; then
11 unzip .
/SGC
2/SpeakGoodChinese2_Linux64.
zip -d ~
/Desktop
/
13 unzip .
/SGC
2/SpeakGoodChinese2_Linux64.
zip -d ~
/SpeakGoodChinese2
15 if [[ $?
!= 0 && -n ZENITY
]]; then
16 zenity
--info --text='Installation of SpeakGoodChinese2 encountered an error'
19 mkdir
-p "~/.SpeakGoodChinese2/wordlists"
20 cp -r wordlists
/* "~/.SpeakGoodChinese2/wordlists/"
21 if [[ $?
!= 0 && -n ZENITY
]]; then
22 zenity
--info --text='Installation of the wordlists encountered an error'
23 elif [[ -n ZENITY
]]; then
24 zenity
--info --text='Installation completed'
26 elif [[ -n ZENITY
]]; then
27 zenity
--info --text="THIS INSTALL SCRIPT IS ONLY FOR LINUX, NOT FOR MACINTOSH COMPUTERS (OSX)"