Skip to content

Commit 3dec74d

Browse files
authored
Merge pull request #713 from aaronparker/apps
Apps
2 parents 80eda24 + 58722e0 commit 3dec74d

27 files changed

+446
-114
lines changed
File renamed without changes.
File renamed without changes.

Evergreen/Apps/Get-AkeoRufusAlt.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function Get-AkeoRufusAlt {
1818
$UpdateFeedLines = $UpdateFeed -split "`n"
1919

2020
# Match the version number
21-
$Version = (($UpdateFeedLines | Select-String -Pattern "version").Line -split "=")[-1].Trim()
21+
$Version = (($UpdateFeedLines | Select-String -Pattern "^version" -CaseSensitive).Line -split "=")[-1].Trim()
2222

2323
# For each architecture, match the download URL and return to the pipeline
2424
foreach ($Architecture in $res.Get.Update.Architectures.GetEnumerator()) {

Evergreen/Apps/Get-AmazonCorretto.ps1

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto11 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto15 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto16 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto17 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto20 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto21 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}

0 commit comments

Comments
 (0)