Tools/ConnectionPatcher: Fix a typo when checking if moduleName dir exists

Thanks to @ChipLeo
Ref #13866
This commit is contained in:
Duarte Duarte
2015-01-11 22:00:55 +00:00
parent 6cfa0e6d85
commit 8bbd9133d5

View File

@@ -68,7 +68,7 @@ namespace Connection_Patcher
if (!fs::exists(modulePath))
fs::create_directories(modulePath);
if (fs::exists(modulePath / modulePath))
if (fs::exists(modulePath / moduleName))
fs::permissions(modulePath / moduleName, fs::add_perms | fs::others_write | fs::group_write | fs::owner_write);
patcher.Finish(modulePath / moduleName);
fs::permissions(modulePath / moduleName, fs::remove_perms | fs::others_write | fs::group_write | fs::owner_write);