Fix install script
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user