new changes
This commit is contained in:
@@ -56,6 +56,13 @@ param(
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$Root = $PSScriptRoot
|
||||
|
||||
# Refresh PATH from the registry so `docker` resolves even in a terminal opened
|
||||
# before Docker Desktop was installed (a common first-run gotcha).
|
||||
$env:Path = (@(
|
||||
[Environment]::GetEnvironmentVariable('Path', 'Machine'),
|
||||
[Environment]::GetEnvironmentVariable('Path', 'User')
|
||||
) | Where-Object { $_ }) -join ';'
|
||||
|
||||
function Write-Step($m) { Write-Host "==> $m" -ForegroundColor Cyan }
|
||||
function Write-Ok($m) { Write-Host " + $m" -ForegroundColor Green }
|
||||
function Write-Warn2($m){ Write-Host " ! $m" -ForegroundColor Yellow }
|
||||
|
||||
Reference in New Issue
Block a user