Fix install script

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
pull/400/head
Stefan Prodan 4 years ago
parent 704296df4e
commit 7e13cc2ca8
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

@ -20,12 +20,11 @@ Flux v2 is constructed with the [GitOps Toolkit](#gitops-toolkit), a
set of composable APIs and specialized tools for building Continuous
Delivery on top of Kubernetes.
## `flux` installation
## Flux installation
With Homebrew:
```sh
brew tap fluxcd/tap
brew install fluxcd/tap/flux
```

@ -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}")

Loading…
Cancel
Save