mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
fix typos
This commit is contained in:
@@ -109,6 +109,7 @@ function Confirm-XcodeIntegrity {
|
|||||||
|
|
||||||
$XcodeRootPath = Get-XcodeRootPath -Version $Version
|
$XcodeRootPath = Get-XcodeRootPath -Version $Version
|
||||||
if (Test-XcodeStableRelease -XcodeRootPath $XcodeRootPath) {
|
if (Test-XcodeStableRelease -XcodeRootPath $XcodeRootPath) {
|
||||||
|
Write-Host "Validating Xcode integrity for '$XcodeRootPath'..."
|
||||||
Invoke-ExpressionWithValidation "spctl --assess --raw $XcodeRootPath"
|
Invoke-ExpressionWithValidation "spctl --assess --raw $XcodeRootPath"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -119,7 +120,9 @@ function Approve-XcodeLicense {
|
|||||||
[string]$Version
|
[string]$Version
|
||||||
)
|
)
|
||||||
|
|
||||||
$xcodeBuildPath = Get-XcodeToolPath -Version $Version -ToolName "xcodebuild"
|
$XcodeRootPath = Get-XcodeRootPath -Version $Version
|
||||||
|
Write-Host "Approving Xcode license for '$XcodeRootPath'..."
|
||||||
|
$xcodeBuildPath = Get-XcodeToolPath -XcodeRootPath $XcodeRootPath -ToolName "xcodebuild"
|
||||||
Invoke-ExpressionWithValidation "sudo $xcodeBuildPath -license accept"
|
Invoke-ExpressionWithValidation "sudo $xcodeBuildPath -license accept"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ Describe "Xcode" {
|
|||||||
$defaultXcodeTestCase = @{ DefaultXcode = $defaultXcode }
|
$defaultXcodeTestCase = @{ DefaultXcode = $defaultXcode }
|
||||||
It "Default Xcode is <DefaultXcode>" -TestCases $defaultXcodeTestCase {
|
It "Default Xcode is <DefaultXcode>" -TestCases $defaultXcodeTestCase {
|
||||||
"xcodebuild -version" | Should -ReturnZeroExitCode
|
"xcodebuild -version" | Should -ReturnZeroExitCode
|
||||||
(Get-CommandResult "xcodebuild -version").Output | Should -BeLike "Xcode ${DefaultXcode}.*"
|
(Get-CommandResult "xcodebuild -version").Output | Should -BeLike "Xcode ${DefaultXcode}*"
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Xcode.app points to default Xcode" -TestCases $defaultXcodeTestCase {
|
It "Xcode.app points to default Xcode" -TestCases $defaultXcodeTestCase {
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
{ "link": "10.2.1", "version": "10.2.1", "symlinks": ["10.2.1_beta"] },
|
{ "link": "10.2.1", "version": "10.2.1", "symlinks": ["10.2.1_beta"] },
|
||||||
{ "link": "10.2", "version": "10.2.0", "symlinks": ["10.2_beta"] },
|
{ "link": "10.2", "version": "10.2.0", "symlinks": ["10.2_beta"] },
|
||||||
{ "link": "10.1", "version": "10.1.0", "symlinks": ["10.1_beta"] },
|
{ "link": "10.1", "version": "10.1.0", "symlinks": ["10.1_beta"] },
|
||||||
{ "link": "10.1", "version": "10.1.0", "symlinks": ["10.1_beta"] },
|
|
||||||
{ "link": "10", "version": "10.0.0", "symlinks": ["10_beta"] },
|
{ "link": "10", "version": "10.0.0", "symlinks": ["10_beta"] },
|
||||||
{ "link": "9.4.1", "version": "9.4.1", "symlinks": ["9.4.1_beta"] }
|
{ "link": "9.4.1", "version": "9.4.1", "symlinks": ["9.4.1_beta"] }
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user