diff --git a/Source/Editor/Cooker/Platform/Linux/LinuxPlatformTools.cpp b/Source/Editor/Cooker/Platform/Linux/LinuxPlatformTools.cpp index 57562f537..1c74cd1d3 100644 --- a/Source/Editor/Cooker/Platform/Linux/LinuxPlatformTools.cpp +++ b/Source/Editor/Cooker/Platform/Linux/LinuxPlatformTools.cpp @@ -66,7 +66,7 @@ bool LinuxPlatformTools::OnDeployBinaries(CookingData& data) #if !BUILD_DEBUG const String outputExePath = outputPath / TEXT("FlaxGame"); const String gameExePath = outputPath / gameSettings->ProductName; - if (FileSystem::FileExists(outputExePath) && gameExePath.Compare(outputExePath, StringSearchCase::IgnoreCase) == 0) + if (FileSystem::FileExists(outputExePath) && gameExePath.Compare(outputExePath, StringSearchCase::IgnoreCase) != 0) { if (FileSystem::MoveFile(gameExePath, outputExePath, true)) {