3 # Copy wordlists to SpeakGoodChinese preferences directory
5 if [[ `/bin/uname` != "Darwin" ]] ; then
8 if [[ `/bin/uname -m` =~
"64" ]]; then
11 if [[ (-s ~
/Desktop
/SpeakGoodChinese2 ||
-s ~
/SpeakGoodChinese2
) && -n ZENITY
]]; then
12 zenity
--info --text="SpeakGoodChinese2 already exists at destination"
13 elif [[ -s .
/SGC
2/SpeakGoodChinese2_linux
${MACHINE}.
zip ]]; then
14 if [[ -d ~
/Desktop
]]; then
15 unzip .
/SGC
2/SpeakGoodChinese2_linux
${MACHINE}.
zip -d ~
/Desktop
/
17 unzip .
/SGC
2/SpeakGoodChinese2_linux
${MACHINE}.
zip -d ~
/
19 if [[ $?
!= 0 && -n ZENITY
]]; then
20 zenity
--info --text='Installation of SpeakGoodChinese2 encountered an error'
23 mkdir
-p ~
/.SpeakGoodChinese
2/wordlists
24 cp -r wordlists
/* ~
/.SpeakGoodChinese
2/wordlists
/
25 if [[ $?
!= 0 && -n ZENITY
]]; then
26 zenity
--info --text='Installation of the wordlists encountered an error'
27 elif [[ -n ZENITY
]]; then
28 zenity
--info --text='Installation completed'
30 elif [[ -n ZENITY
]]; then
31 zenity
--info --text="THIS INSTALL SCRIPT IS ONLY FOR LINUX, NOT FOR MACINTOSH COMPUTERS (OSX)"