a8m / a8m/envsubst

Update download URL to always use "latest" release

Offen
#65 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
907
Forks
96
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Minor adjustment to README.md; removes the need to update the URL whenever a new release is made.

Currently the instructions read:
```sh
curl -L https://github.com/a8m/envsubst/releases/download/v1.2.0/envsubst-`uname -s`-`uname -m` -o envsubst
chmod +x envsubst
sudo mv envsubst /usr/local/bin
```
which hard-codes the release version number in the URL - currently the "latest" release is 1.4.2, not 1.2.0.

Github has a "latest release" URL feature, so the URL can be rewritten as:
```sh
curl -sL https://github.com/a8m/envsubst/releases/latest/download/envsubst-`uname -s`-`uname -m` -o envsubst
chmod +x envsubst
sudo mv envsubst /usr/local/bin
```
(BTW the curl `-sL` rather than just `-L` will also disable the progress bar; download is so quick progress bar isn't useful/needed.)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.