fix variable parsing error in stop.ps1

This commit is contained in:
祀梦
2026-01-27 21:55:35 +08:00
parent c55793bae5
commit 2d39f48f6f

View File

@@ -27,10 +27,10 @@ foreach ($port in $ports) {
Write-Host " Warning: Could not stop process on port $port (PID: $processId)" -ForegroundColor Yellow
}
} else {
Write-Host " Port $port: No process found" -ForegroundColor DarkGray
Write-Host " Port ${port}: No process found" -ForegroundColor DarkGray
}
} catch {
Write-Host " Error checking port $port: $($_.Exception.Message)" -ForegroundColor Red
Write-Host " Error checking port ${port}: $($_.Exception.Message)" -ForegroundColor Red
}
}