Skip to content

Commit

Permalink
Woops, forgot a variable in remove-client-mods.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Oct 31, 2019
1 parent 073f26c commit c67a498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion development/include-in-server-files/remove-client-mods.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ param(
"XaerosWorldMap")
)

$ModFolder = "$PSScriptRoot/mods"

Get-ChildItem $ModFolder -Name -Filter "*.jar" | ForEach-Object {
$Mod = $_.toLower()
foreach ($ClientMod in $ClientMods) {
if ($Mod.StartsWith($ClientMod.toLower())) {
Remove-Item "$Modfolder/$mod" -Force
Remove-Item "$Modfolder/$Mod" -Force
}
}
}

0 comments on commit c67a498

Please sign in to comment.