Small modification - space after If

This commit is contained in:
Andy Mishechkin
2019-12-23 18:46:01 +04:00
parent 7ad7e32149
commit 80932d59cf

View File

@@ -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;
}
}