From 80932d59cf1526a31fcf965832f5f92fc7e3851d Mon Sep 17 00:00:00 2001 From: Andy Mishechkin Date: Mon, 23 Dec 2019 18:46:01 +0400 Subject: [PATCH] Small modification - space after If --- images/win/scripts/ImageHelpers/InstallHelpers.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/win/scripts/ImageHelpers/InstallHelpers.ps1 b/images/win/scripts/ImageHelpers/InstallHelpers.ps1 index 788e60043..56fac941e 100644 --- a/images/win/scripts/ImageHelpers/InstallHelpers.ps1 +++ b/images/win/scripts/ImageHelpers/InstallHelpers.ps1 @@ -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; } }