Hidden error messages.

Hidden error messages about copying missing mod's keys.
This commit is contained in:
2024-12-07 11:21:26 +03:00
parent d30783f0b2
commit 542717cf6c

View File

@@ -170,15 +170,15 @@ if ($update) {
}
Write-Host
# Making symbolic links to mods
# Making symbolic links to mods and copying mod's keys
Write-Host "Making symbolic links to mods:"
$clientMods | ForEach-Object {
New-Item -ItemType SymbolicLink -Path "$($serverLocation)\$($_.Item1)" -Target "$($serverLocation)\steamapps\workshop\content\$($appidGame)\$($_.Item2)" -Force
Copy-Item -Path "$($serverLocation)\$($_.Item1)\Keys\*.bikey" -Destination "$($serverLocation)\keys\" -Force
Copy-Item -Path "$($serverLocation)\$($_.Item1)\Keys\*.bikey" -Destination "$($serverLocation)\keys\" -Force | Out-Null
}
$serverMods | ForEach-Object {
New-Item -ItemType SymbolicLink -Path "$($serverLocation)\$($_.Item1)" -Target "$($serverLocation)\steamapps\workshop\content\$($appidGame)\$($_.Item2)" -Force
Copy-Item -Path "$($serverLocation)\$($_.Item1)\Keys\*.bikey" -Destination "$($serverLocation)\keys\" -Force
Copy-Item -Path "$($serverLocation)\$($_.Item1)\Keys\*.bikey" -Destination "$($serverLocation)\keys\" -Force | Out-Null
}
Start-Sleep -Seconds 1