Update src/ui.ps1
This commit is contained in:
@@ -117,7 +117,11 @@ $subHtml
|
|||||||
function Get-ModuleVersionHtml {
|
function Get-ModuleVersionHtml {
|
||||||
$mod = Get-Module -ListAvailable -Name SVSMSP | Sort-Object Version -Descending | Select-Object -First 1
|
$mod = Get-Module -ListAvailable -Name SVSMSP | Sort-Object Version -Descending | Select-Object -First 1
|
||||||
|
|
||||||
$branchDisplay = switch ($Script:SamyBranch.ToLower()) {
|
$branch = $Script:SamyBranch
|
||||||
|
if ([string]::IsNullOrWhiteSpace($branch)) { $branch = $Script:SamyGitBranch }
|
||||||
|
if ([string]::IsNullOrWhiteSpace($branch)) { $branch = 'beta' }
|
||||||
|
|
||||||
|
$branchDisplay = switch ($branch.ToLower()) {
|
||||||
'main' { 'Main / Stable' }
|
'main' { 'Main / Stable' }
|
||||||
'beta' { 'Beta' }
|
'beta' { 'Beta' }
|
||||||
default { $Script:SamyBranch }
|
default { $Script:SamyBranch }
|
||||||
|
|||||||
Reference in New Issue
Block a user