PowerShellGetv2 icon indicating copy to clipboard operation
PowerShellGetv2 copied to clipboard

Missing Installed Script Path in Linux

Open jdhitsolutions opened this issue 4 years ago • 0 comments

Steps to reproduce

You can try to install any script you want. You aren't going to actually run it.

Install-Script Get-MyAge -force
Get-Command -commandtype ExternalScript

Expected behavior

I expect to see the result from Get-Command

Actual behavior

Nothing happens

Environment data

The script actually downloads to home//.local/share/powershell/Scripts. The problem is that this location is not part of %PATH% so the file is never detected. If I manually add this location to my path, then Get-Command works. Although I will point out that Uninstall-Script works just fine. Something needs to update the path variable.

This was observed in PS7 RC and GA. I get the same results with Ubuntu and Fedora so I don't think it is Linux distro specific.

jdhitsolutions avatar Mar 05 '20 21:03 jdhitsolutions