From 8d1280a1bd99e73510b686be9644684e061d7a7f Mon Sep 17 00:00:00 2001 From: walon Date: Fri, 14 Mar 2025 08:59:11 +0800 Subject: [PATCH] [fix] fixed the bug where BashUtil.RemoveDir failed to run under certain circumstances on macOS systems. --- Editor/Installer/BashUtil.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Editor/Installer/BashUtil.cs b/Editor/Installer/BashUtil.cs index 555f3ca..90e4259 100644 --- a/Editor/Installer/BashUtil.cs +++ b/Editor/Installer/BashUtil.cs @@ -83,7 +83,7 @@ namespace HybridCLR.Editor.Installer { RemoveDir(subDir); } - Directory.Delete(dir); + Directory.Delete(dir, true); break; } catch (Exception e) @@ -111,12 +111,12 @@ namespace HybridCLR.Editor.Installer #endif if (srcFile.Length > maxPathLength) { - UnityEngine.Debug.LogError($"srcFile:{srcFile} path is too long. copy ignore!"); + UnityEngine.Debug.LogError($"srcFile:{srcFile} path is too long. skip copy!"); return; } if (dstFile.Length > maxPathLength) { - UnityEngine.Debug.LogError($"dstFile:{dstFile} path is too long. copy ignore!"); + UnityEngine.Debug.LogError($"dstFile:{dstFile} path is too long. skip copy!"); return; } File.Copy(srcFile, dstFile);