psget/psget — pull request #92 by paulmarsy (2013-06-25 09:28:57+00:00)
Title: Fixing a bug where no User environment variable for PSModulePath caused an error in Canonicolize-Path

*NOTE* for some reason Git is showing unchanged lines as having changed, I don't know why. The only line which has changed is line 1232 to Trim additional semicolons which break the way we "-split ';'" on the PSModulePath causing empty array elements

Error shows when installing a PowerShell module into the Global level

Canonicolize-Path : Cannot bind argument to parameter 'Path' because it
is an empty string.
At C:\PsGet\PsGet.psm1:947 char:96
+ ... onicolize-Path $_ }) -contains (Canonicolize-Path $Destination)
+ ~~
+ CategoryInfo : InvalidData: (:) [Canonicolize-Path],
ParameterBindingValidationException
+ FullyQualifiedErrorId :
ParameterArgumentValidationErrorEmptyStringNotAllowed,Canonicolize-Path