mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
Small modification - space after If
This commit is contained in:
@@ -106,7 +106,7 @@ Switch for stopping the script and exit from PowerShell if one service is absent
|
||||
$Service = Get-Service $ServiceName -ErrorAction SilentlyContinue
|
||||
if (-not $Service) {
|
||||
Write-Warning "[!] Service [$ServiceName] is not found";
|
||||
if($StopOnError) {
|
||||
if ($StopOnError) {
|
||||
exit 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user