Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update download URL to always use "latest" release #65

Open
Cueball opened this issue Oct 24, 2024 · 0 comments
Open

Update download URL to always use "latest" release #65

Cueball opened this issue Oct 24, 2024 · 0 comments

Comments

@Cueball
Copy link

Cueball commented Oct 24, 2024

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

Currently the instructions read:

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:

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant