Skip to content

Commit

Permalink
Fix for spaces in ps1 script
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Jun 24, 2023
1 parent 7ad4dff commit 882b3c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion get-xpipe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ Request-File -Url $XPipeDownloadUrl -File $file
Write-Host "Installing XPipe ..."

# Wait for completion
Start-Process -FilePath "msiexec" -Wait -ArgumentList "/i", "$file", "/quiet"
# The file variable can contain spaces, so we have to accommodate for that
Start-Process -FilePath "msiexec" -Wait -ArgumentList "/i", "`"$file`"", "/quiet"

# Update current process PATH environment variable
$env:Path=(
Expand Down

0 comments on commit 882b3c1

Please sign in to comment.