Skip to content

install-powershell.sh should autodetect whether to use curl or wget #7872

@DarwinJS

Description

@DarwinJS

Turns out minimalized versions of Amazon Linux 2 (e.g. the container) do not have wget - same as OSX.

Use command -v to test which one is present.

If neither is present, give instructions to download the second script manually and rerun the primary script.

Code is here: https://github.com/PowerShell/PowerShell/blob/master/tools/install-powershell.sh#L143-L147

I am interested in doing this.

Metadata

Metadata

Assignees

Labels

Area-Maintainers-Buildspecific to affecting the buildIssue-Enhancementthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or more

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions