Skip to content

Commit 7b19c16

Browse files
committed
Space Engineers (Torch): fix plugins script
1 parent d467465 commit 7b19c16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

space-engineers-torchdownloadplugins.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ New-Item -Path $pluginsDir -ItemType Directory -Force | Out-Null
33

44
# First arg controls overwrite
55
$overwrite = $args[0]
6-
$guids = $args[1..($args.Count - 1)] | ForEach-Object { $_.Trim() } | Where-Object { $_ -ne "" }
6+
$guids = $args[1] -split '\s+' | Where-Object { $_ -ne "" }
77

88
# Temp dir for downloads
99
$tempDir = Join-Path $env:TEMP ("torch_" + [guid]::NewGuid().ToString())

0 commit comments

Comments
 (0)