another fix

This commit is contained in:
2025-07-04 22:27:37 +02:00
parent 531c2a60bf
commit e86fe2ee17
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ using Pilz;
using Pilz.Configuration; using Pilz.Configuration;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
[assembly: AssemblyAppVersion("1.9.1.0")] [assembly: AssemblyAppVersion("1.9.2.0")]
namespace ModpackUpdater.Apps.Client; namespace ModpackUpdater.Apps.Client;

View File

@@ -71,7 +71,7 @@ public static class Extensions
public static string GetDestPath(this InstallAction @this, string installDir) public static string GetDestPath(this InstallAction @this, string installDir)
{ {
var path = @this.DestPath; var path = @this.DestPath;
var root = Path.GetPathRoot(path); var root = Path.GetPathRoot(path) ?? string.Empty;
var start = installDir; var start = installDir;
while (root.Length == 3 && root.StartsWith("..")) while (root.Length == 3 && root.StartsWith(".."))
{ {