1
0
mirror of synced 2026-02-06 10:55:56 +00:00

Fix install script

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2020-10-29 21:10:12 +02:00
parent 704296df4e
commit 7e13cc2ca8
3 changed files with 5 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ Binaries for macOS and Linux AMD64 are available for download on the
To install the latest release run:
```bash
curl -s https://raw.githubusercontent.com/fluxcd/flux2/master/install/flux.sh | sudo bash
curl -s https://raw.githubusercontent.com/fluxcd/flux2/main/install/flux.sh | sudo bash
```
The install script does the following:
@@ -27,10 +27,10 @@ Clone the repository:
```bash
git clone https://github.com/fluxcd/flux2
cd toolkit
cd flux2
```
Build the `flux` binary (requires go >= 1.14):
Build the `flux` binary (requires go >= 1.15):
```bash
make build

View File

@@ -119,7 +119,7 @@ download() {
# Download hash from Github URL
download_hash() {
HASH_URL="https://github.com/${GITHUB_REPO}/releases/download/v${VERSION_FLUX}/toolkit_${VERSION_FLUX}_checksums.txt"
HASH_URL="https://github.com/${GITHUB_REPO}/releases/download/v${VERSION_FLUX}/flux2_${VERSION_FLUX}_checksums.txt"
info "Downloading hash ${HASH_URL}"
download "${TMP_HASH}" "${HASH_URL}"
HASH_EXPECTED=$(grep " flux_${VERSION_FLUX}_${OS}_${ARCH}.tar.gz$" "${TMP_HASH}")