Skip to content

install-powershell.sh solution can not install pre-releases because it removes all "v's" from version string #6572

@DarwinJS

Description

@DarwinJS

The sed calls in this line remove all occurrences of the letter v rather than just the first one: https://github.com/PowerShell/PowerShell/blob/master/tools/installpsh-redhat.sh#L124

This ends up removing the "v" in "preview" of the version number when parsing it to come up with a file download path.

This: sed s/v//g needs to have the global option removed to become sed s/v//

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Maintainers-Buildspecific to affecting the buildIssue-BugIssue has been identified as a bug in the product

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions