Skip to content

How to validate and keep correct the download instructions for every .ps1? #9

@claremacrae

Description

@claremacrae

A quick spot check shows some files whose instruction comment does not match the actual location, for example:

Wrong filenames:

# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/dev-environments/.ps1 | iex

# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/full.net.machine.ps1 | iex

Wrong directory:

# PS> iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/elixir.ps1 | iex

As more files are copied-and-pasted, I guess this may be become more common - and I think I've seen a commit or two fixing other inconsistencies...

Might it be worth either automating a check, or automating code to set line 2 of every script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions