mirror of
https://github.com/actions/runner-images.git
synced 2026-01-09 12:08:02 +08:00
Minor update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user