GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — Enhance 'install-powershell.ps1' to work on Linux/MacOS by daxian-dbw · Pull Request #5411 · PowerShell/PowerShell Conversation
Member
Enhance 'install-powershell.ps1' to work on Linux/MacOS. When
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Travis Plunk (TravisEz13)
approved these changes
Aditya Patwardhan (adityapatwardhan)
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some non-blocking comments
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think, since we have CmdletBinding() we should not force -verbose
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
|
|
||
| Expand-Archive -Path $packagePath -DestinationPath $Destination | ||
| if ($IsWinEnv) { | ||
| Expand-Archive -Path $packagePath -DestinationPath $Destination |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should we delete the compressed package after expansion?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The compressed package will be deleted. The compressed package is downloaded to $tempDir which will be deleted in the finally block at the end of the script.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Linux job succeeded, but the macOS job was canceled again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
) Enhance 'install-powershell.ps1' to work on Linux and macOS too. A user can install release version or daily powershell core on Linux and macOS. When `-AddToPath` is specified: - On Windows, add the absolute destination path to the 'User' scope environment variable 'Path'; - On Linux, make the symlink '/usr/bin/pwsh' points to "$Destination/pwsh"; - On MacOS, make the symlink '/usr/local/bin/pwsh' points to "$Destination/pwsh".
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.