File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ using namespace System.Reflection
99[CmdletBinding (PositionalBinding = $false )]
1010param (
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
You can’t perform that action at this time.
0 commit comments