a8m / a8m/envsubst

Update download URL to always use "latest" release

Đang mở Phù hợp với người mới
#65 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
907
Fork
96
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

The change is in README.md; locate the curl command lines shown in the issue. Replace the version-specific URL with the 'latest' release URL as described, and also update the curl flags to include -s. Verify by checking the README formatting and ensuring the new command works by testing it in a shell.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell
Lĩnh vực
documentation
Loại issue
Tài liệu
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
90/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.