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 set of composable APIs and specialized tools for building Continuous
Delivery on top of Kubernetes. Delivery on top of Kubernetes.
## `flux` installation ## Flux installation
With Homebrew: With Homebrew:
```sh ```sh
brew tap fluxcd/tap
brew install fluxcd/tap/flux 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: To install the latest release run:
```bash ```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: The install script does the following:
@ -27,10 +27,10 @@ Clone the repository:
```bash ```bash
git clone https://github.com/fluxcd/flux2 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 ```bash
make build make build

@ -119,7 +119,7 @@ download() {
# Download hash from Github URL # Download hash from Github URL
download_hash() { 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}" info "Downloading hash ${HASH_URL}"
download "${TMP_HASH}" "${HASH_URL}" download "${TMP_HASH}" "${HASH_URL}"
HASH_EXPECTED=$(grep " flux_${VERSION_FLUX}_${OS}_${ARCH}.tar.gz$" "${TMP_HASH}") HASH_EXPECTED=$(grep " flux_${VERSION_FLUX}_${OS}_${ARCH}.tar.gz$" "${TMP_HASH}")

Loading…
Cancel
Save