fix variable parsing error in stop.ps1
This commit is contained in:
@@ -27,10 +27,10 @@ foreach ($port in $ports) {
|
|||||||
Write-Host " Warning: Could not stop process on port $port (PID: $processId)" -ForegroundColor Yellow
|
Write-Host " Warning: Could not stop process on port $port (PID: $processId)" -ForegroundColor Yellow
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Write-Host " Port $port: No process found" -ForegroundColor DarkGray
|
Write-Host " Port ${port}: No process found" -ForegroundColor DarkGray
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
Write-Host " Error checking port $port: $($_.Exception.Message)" -ForegroundColor Red
|
Write-Host " Error checking port ${port}: $($_.Exception.Message)" -ForegroundColor Red
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user