Skip to content

Commit 096d871

Browse files
committed
♻️ Lower bootstrap param block compatibility level
1 parent 1c2591b commit 096d871

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ModuleFast.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using namespace System.Reflection
99
[CmdletBinding(PositionalBinding = $false)]
1010
param (
1111
#Specify a specific release to use, otherwise 'latest' is used
12-
[string]$Release = $ENV:MFRELEASE ?? 'latest',
12+
[string]$Release = $(if ($ENV:MFRELEASE) { $ENV:MFRELEASE } else { 'latest' }),
1313
#Specify the user
1414
[string]$User = 'JustinGrote',
1515
#Specify the repo
@@ -23,7 +23,7 @@ param (
2323
#Path of the module to bootstrap. You normally won't change this but you can override it if you want
2424
[string]$Uri = $(
2525
$base = "https://github.com/$User/$Repo/releases/{0}/$ModuleFile";
26-
$version = $Release -eq 'latest' ? 'latest/download' : "download/$Release";
26+
$version = if ($Release -eq 'latest') { 'latest/download' } else { "download/$Release"}
2727
$base -f $version
2828
),
2929
#All additional arguments passed to this script will be passed to Install-ModuleFast

0 commit comments

Comments
 (0)