mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Create a $versionSection variable for exe link
This is a little more cautious/explicit with the variables setup in the $saltExe definition.
This commit is contained in:
parent
5ed38f97af
commit
e27dd0a167
1 changed files with 4 additions and 3 deletions
|
@ -237,17 +237,18 @@ If ([int]$year -lt 2017) {
|
|||
}
|
||||
Else {
|
||||
If ($pythonVersion -eq "3") {
|
||||
$pythonVersion = "Py3-"
|
||||
$pythonVersion = "-Py3"
|
||||
}
|
||||
Else {
|
||||
$pythonVersion = "Py2-"
|
||||
$pythonVersion = "-Py2"
|
||||
}
|
||||
}
|
||||
$versionSection = $version + $pythonVersion
|
||||
|
||||
#===============================================================================
|
||||
# Download minion setup file
|
||||
#===============================================================================
|
||||
$saltExe = "Salt-Minion-$version-$pythonVersion$arch-Setup.exe"
|
||||
$saltExe = "Salt-Minion-$versionSection-$arch-Setup.exe"
|
||||
Write-Output "Downloading Salt minion installer $saltExe"
|
||||
$webclient = New-Object System.Net.WebClient
|
||||
$url = "$repourl/$saltExe"
|
||||
|
|
Loading…
Add table
Reference in a new issue