Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(cli): keep drive roots intact in the Windows installer

Andreja41d9bba1fc5
diff --git a/apps/site/public/cli/install.ps1 b/apps/site/public/cli/install.ps1
index 80033801b..691254bc7 100644
--- a/apps/site/public/cli/install.ps1
+++ b/apps/site/public/cli/install.ps1
@@ -193,7 +193,10 @@ function Install-KaneoCli {
else {
$installDir = Join-Path $env:LOCALAPPDATA 'Programs\kaneo'
}
- $installDir = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($installDir).TrimEnd('\', '/')
+ $installDir = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($installDir)
+ if ($installDir.Length -gt [IO.Path]::GetPathRoot($installDir).Length) {
+ $installDir = $installDir.TrimEnd('\', '/')
+ }
try {
New-Item -ItemType Directory -Force -Path $installDir | Out-Null
}