Minor update

This commit is contained in:
MaksimZhukov
2020-02-17 17:31:08 +03:00
parent 9b8fe11d2c
commit 60dc082e2f

View File

@@ -15,7 +15,7 @@ param(
)
$TemplatePath = (Get-ChildItem -Path "images" -Include "$Image.json" -Recurse -Depth 2).FullName
if ($TemplatePath -eq $null)
if (-not $TemplatePath)
{
Write-Error "'-Image' parameter is not valid. You have to specify correct image type."
exit 1