mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Tools/ConnectionPatcher: fix: don't try setting permissions for non-existing file when patching module
This commit is contained in:
@@ -60,7 +60,8 @@ namespace Connection_Patcher
|
||||
if (!fs::exists(modulePath))
|
||||
fs::create_directories(modulePath);
|
||||
|
||||
fs::permissions(modulePath / moduleName, fs::add_perms | fs::others_write | fs::group_write | fs::owner_write);
|
||||
if (fs::exists(modulePath / modulePath))
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user