Skip to content

Commit

Permalink
updated - ssm menu fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robomikel committed May 2, 2023
1 parent 1599dd1 commit 49764c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/core_commands.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ Function Get-SSMMenu {
}
If ($command -eq "install A-D") {
# $gamename = Menu (iex "Import-Csv $currentdir\data\serverlist.csv | Select-Object -ExpandProperty Game | Select-Object -First 42" )
$gamename = Menu (iex "Import-Csv `"$currentdir\data\serverlist.csv`" | Select-Object -ExpandProperty Game | Select-String '^[A-E]'" )
$gamename = Menu (iex "Import-Csv `"$currentdir\data\serverlist.csv`" | Select-Object -ExpandProperty Game | Select-String '^[A-D]'" )
$serverfiles = Import-Csv $currentdir\data\serverlist.csv | where-object Game -like "$gamename" | Select-Object -ExpandProperty ServerFolder
$command = "install"
}
ElseIf ($command -eq "install E-M") {
# $gamename = Menu (iex "Import-Csv $currentdir\data\serverlist.csv | Select-Object -ExpandProperty Game | Select-Object -Last 43" )
$gamename = Menu (iex "Import-Csv `"$currentdir\data\serverlist.csv`" | Select-Object -ExpandProperty Game | Select-String '^[D-M]'" )
$gamename = Menu (iex "Import-Csv `"$currentdir\data\serverlist.csv`" | Select-Object -ExpandProperty Game | Select-String '^[E-M]'" )
$serverfiles = Import-Csv $currentdir\data\serverlist.csv | where-object Game -like "$gamename" | Select-Object -ExpandProperty ServerFolder
$command = "install"
}
Expand Down

0 comments on commit 49764c4

Please sign in to comment.