mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 14:47:08 +00:00
fix templatepath and image variables (#2230)
This commit is contained in:
@@ -16,10 +16,11 @@ param(
|
|||||||
|
|
||||||
if (-not (Test-Path $TemplatePath))
|
if (-not (Test-Path $TemplatePath))
|
||||||
{
|
{
|
||||||
Write-Error "'-Image' parameter is not valid. You have to specify correct image type."
|
Write-Error "'-TemplatePath' parameter is not valid. You have to specify correct Template Path"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$Image = [io.path]::GetFileNameWithoutExtension($TemplatePath)
|
||||||
$TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
|
$TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
|
||||||
$InstallPassword = [System.GUID]::NewGuid().ToString().ToUpper()
|
$InstallPassword = [System.GUID]::NewGuid().ToString().ToUpper()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user