diff --git a/www/docs/install.md b/www/docs/install.md index 2a2a8ef9ccf..05033cf7b3e 100644 --- a/www/docs/install.md +++ b/www/docs/install.md @@ -205,6 +205,9 @@ Once you do that, you can install the packages. ```bash curl -sfL https://goreleaser.com/static/run | VERSION=__VERSION__ DISTRIBUTION=oss bash -s -- check + + curl -sfL https://goreleaser.com/static/run | + VERSION=__VERSION__ DISTRIBUTION=pro bash -s -- check ``` !!! tip diff --git a/www/docs/static/run b/www/docs/static/run index 498563899e6..7fea12b0f59 100755 --- a/www/docs/static/run +++ b/www/docs/static/run @@ -1,6 +1,10 @@ -#!/bin/sh +#!/bin/bash set -e +if [[ "$VERSION" == *-pro ]]; then + DISTRIBUTION="pro" +fi + if test "$DISTRIBUTION" = "pro"; then echo "Using Pro distribution..." RELEASES_URL="https://github.com/goreleaser/goreleaser-pro/releases" @@ -20,9 +24,14 @@ test -z "$VERSION" && { exit 1 } +if test "$DISTRIBUTION" = "pro" && [[ "$VERSION" != *-pro ]]; then + VERSION="$VERSION-pro" +fi + TMP_DIR="$(mktemp -d)" # shellcheck disable=SC2064 # intentionally expands here trap "rm -rf \"$TMP_DIR\"" EXIT INT TERM + OS="$(uname -s)" ARCH="$(uname -m)" test "$ARCH" = "aarch64" && ARCH="arm64"