jdhitsolutions / WingetTools

A set of PowerShell tools for working with the winget package manager.
MIT License
146 stars 14 forks source link

Get-WGPackage fails with space in profile path #11

Open jdhitsolutions opened 1 year ago

jdhitsolutions commented 1 year ago

Hello!

Get-WGPackage did only work for me with these modifications in line 53-54 in the Get-WGpackage.ps1 script, because my profile path has a space:

$winget = "'" + (Get-WGPath | out-string).Trim() + "'" $cmdText = "& " $cmdText += "$winget show --source $source"

Originally posted by @SebCT in https://github.com/jdhitsolutions/WingetTools/issues/10#issuecomment-1251649068