From e27dd0a167363bb0e48f708f7a52871dd3e464c3 Mon Sep 17 00:00:00 2001 From: rallytime Date: Tue, 8 Aug 2017 10:32:50 -0400 Subject: [PATCH] Create a $versionSection variable for exe link This is a little more cautious/explicit with the variables setup in the $saltExe definition. --- bootstrap-salt.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bootstrap-salt.ps1 b/bootstrap-salt.ps1 index fdfc30f..e25e258 100644 --- a/bootstrap-salt.ps1 +++ b/bootstrap-salt.ps1 @@ -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"