mirror of
https://github.com/actions/runner-images.git
synced 2025-12-28 20:58:32 +08:00
fix build-image.ps1 script
This commit is contained in:
@@ -19,7 +19,7 @@ param(
|
||||
[String] [Parameter (Mandatory=$true)] $XcodeInstallationPassword
|
||||
)
|
||||
|
||||
$TemplatePath = (Get-ChildItem -Path "images" -Include "$Image.json" -Recurse -Depth 2).FullName
|
||||
$TemplatePath = (Get-ChildItem -Path "templates" -Include "$Image.json" -Recurse -Depth 2).FullName
|
||||
if (-not $TemplatePath)
|
||||
{
|
||||
Write-Error "'-Image' parameter is not valid. You have to specify correct image type."
|
||||
|
||||
Reference in New Issue
Block a user