Report Windows installer PATH status accurately
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / macos-client (macos-aarch64, macos-14) (push) Canceled after 0s
ci / macos-client (macos-x86_64, macos-13) (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s

This commit is contained in:
DuProcess
2026-07-16 23:01:28 -04:00
parent aa61f4acf1
commit d08cb709ab
2 changed files with 17 additions and 1 deletions
+9 -1
View File
@@ -458,6 +458,14 @@ function Write-Utf8NoBom($Path, $Content) {
[System.IO.File]::WriteAllText($Path, $Content, $encoding)
}
function Write-PathStatus($PathToCheck) {
if (PathList-Contains $env:Path $PathToCheck) {
Write-Info "Current terminal PATH includes Dosh."
} else {
Write-Info "Open a new terminal if dosh is not found on PATH."
}
}
$bindir = Normalize-PathForCompare (Join-Path $Prefix "bin")
$configDir = Normalize-PathForCompare (Join-Path $HOME ".config\dosh")
New-Item -ItemType Directory -Force -Path $bindir, $configDir | Out-Null
@@ -644,4 +652,4 @@ Write-Info "Client config:"
Write-Info " $configDir\client.toml"
Write-Info " $configDir\hosts.toml"
Write-Info ""
Write-Info "Open a new terminal for PATH changes to apply."
Write-PathStatus $bindir