Fix bug in InstallSSLocal

This commit is contained in:
Charlie Qiu
2016-06-11 07:28:25 +08:00
parent 69ef77f277
commit 3b21ad5800

View File

@ -102,7 +102,7 @@ func InstallSSLocal() {
let fileMgr = NSFileManager.defaultManager()
let homeDir = NSHomeDirectory()
let appSupportDir = homeDir+APP_SUPPORT_DIR
if !fileMgr.fileExistsAtPath(appSupportDir + SS_LOCAL_VERSION + "/ss-local")
if !fileMgr.fileExistsAtPath(appSupportDir + "ss-local-\(SS_LOCAL_VERSION)/ss-local")
|| !fileMgr.fileExistsAtPath(appSupportDir + "libcrypto.1.0.0.dylib") {
let bundle = NSBundle.mainBundle()
let installerPath = bundle.pathForResource("install_ss_local.sh", ofType: nil)