Change the priority of the function to check (#476)
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Mon, 24 Jul 2023 05:31:21 +0000 (14:31 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 24 Jul 2023 05:31:21 +0000 (14:31 +0900)
NativeLauncher/tool/tac_installer.cc

index b425bbb..7444f94 100644 (file)
@@ -121,7 +121,7 @@ static bool copyAssemblyCreateSymlink(std::string binPath, std::string tacDir, s
                                                nuget_restoration = true;
                                                break;
                                        }
-                                       if (!copyFile(concatPath(binNiPath, niFile), concatPath(tac_version_dir, niFile)) && exist(binNiPath)) {
+                                       if (exist(binNiPath) && !copyFile(concatPath(binNiPath, niFile), concatPath(tac_version_dir, niFile))) {
                                                _ERR("Failed to copy of %s", niFile.c_str());
                                        }
                                }