1
- param ([String ]$PORTER_VERSION = " UNKNOWN " )
1
+ param ([String ]$PORTER_PERMALINK = ' latest ' , [ String ] $MIXIN_PERMALINK = ' latest ' )
2
2
3
3
$PORTER_HOME = " $env: USERPROFILE \.porter"
4
4
$PORTER_URL = " https://cdn.deislabs.io/porter"
@@ -7,18 +7,18 @@ echo "Installing porter to $PORTER_HOME"
7
7
8
8
mkdir -f $PORTER_HOME
9
9
10
- (new-object System.Net.WebClient).DownloadFile(" $PORTER_URL /$PORTER_VERSION /porter-windows-amd64.exe" , " $PORTER_HOME \porter.exe" )
11
- (new-object System.Net.WebClient).DownloadFile(" $PORTER_URL /$PORTER_VERSION /porter-linux-amd64" , " $PORTER_HOME \porter-runtime" )
10
+ (new-object System.Net.WebClient).DownloadFile(" $PORTER_URL /$PORTER_PERMALINK /porter-windows-amd64.exe" , " $PORTER_HOME \porter.exe" )
11
+ (new-object System.Net.WebClient).DownloadFile(" $PORTER_URL /$PORTER_PERMALINK /porter-linux-amd64" , " $PORTER_HOME \porter-runtime" )
12
12
echo " Installed $ ( & $PORTER_HOME \porter.exe version) "
13
13
14
- & $PORTER_HOME / porter mixin install exec -- version $PORTER_VERSION
15
- & $PORTER_HOME / porter mixin install kubernetes -- version $PORTER_VERSION
16
- & $PORTER_HOME / porter mixin install helm -- version $PORTER_VERSION
17
- & $PORTER_HOME / porter mixin install azure -- version $PORTER_VERSION
18
- & $PORTER_HOME / porter mixin install terraform -- version $PORTER_VERSION
19
- & $PORTER_HOME / porter mixin install az -- version $PORTER_VERSION
20
- & $PORTER_HOME / porter mixin install aws -- version $PORTER_VERSION
21
- & $PORTER_HOME / porter mixin install gcloud -- version $PORTER_VERSION
14
+ & $PORTER_HOME / porter mixin install exec -- version $MIXIN_PERMALINK
15
+ & $PORTER_HOME / porter mixin install kubernetes -- version $MIXIN_PERMALINK
16
+ & $PORTER_HOME / porter mixin install helm -- version $MIXIN_PERMALINK
17
+ & $PORTER_HOME / porter mixin install azure -- version $MIXIN_PERMALINK
18
+ & $PORTER_HOME / porter mixin install terraform -- version $MIXIN_PERMALINK
19
+ & $PORTER_HOME / porter mixin install az -- version $MIXIN_PERMALINK
20
+ & $PORTER_HOME / porter mixin install aws -- version $MIXIN_PERMALINK
21
+ & $PORTER_HOME / porter mixin install gcloud -- version $MIXIN_PERMALINK
22
22
23
23
echo " Installation complete."
24
24
echo " Add porter to your path by running:"
0 commit comments