machine-setup icon indicating copy to clipboard operation
machine-setup copied to clipboard

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

Open claremacrae opened this issue 4 years ago • 0 comments

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

Wrong filenames:

https://github.com/JayBazuzi/machine-setup/blob/677de660a5a52de276d5ae8e8df7249bd6c6e0e0/dev_environments/ruby.ps1#L2

https://github.com/JayBazuzi/machine-setup/blob/816800dd1effd07dcc7b59b2cf13a3581de07acd/dev_environments/swift.ps1#L2

Wrong directory:

https://github.com/JayBazuzi/machine-setup/blob/677de660a5a52de276d5ae8e8df7249bd6c6e0e0/dev_environments/elixir.ps1#L2

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?

claremacrae avatar Dec 08 '20 21:12 claremacrae