From 3b21ad5800c164567ab2a2ba86e217f6a9d2f5b8 Mon Sep 17 00:00:00 2001 From: Charlie Qiu Date: Sat, 11 Jun 2016 07:28:25 +0800 Subject: [PATCH] Fix bug in InstallSSLocal --- ShadowsocksX-NG/LaunchAgentUtils.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShadowsocksX-NG/LaunchAgentUtils.swift b/ShadowsocksX-NG/LaunchAgentUtils.swift index 5ea5554..006d844 100644 --- a/ShadowsocksX-NG/LaunchAgentUtils.swift +++ b/ShadowsocksX-NG/LaunchAgentUtils.swift @@ -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)