mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +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
|
$Service = Get-Service $ServiceName -ErrorAction SilentlyContinue
|
||||||
if (-not $Service) {
|
if (-not $Service) {
|
||||||
Write-Warning "[!] Service [$ServiceName] is not found";
|
Write-Warning "[!] Service [$ServiceName] is not found";
|
||||||
if($StopOnError) {
|
if ($StopOnError) {
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user