Merge pull request #2499 from djds/master

hack: update install-buildx
master
Tõnis Tiigi 2021-12-02 18:20:12 -08:00 committed by GitHub
commit d68e5d8d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash
set -eu -o pipefail
set -euo pipefail
if [ -z "${BINDIR}" ] && [ -z "${PREFIX}" ]; then
PREFIX="$(realpath "$(dirname "$0")"/..)"
if [ -z "${BINDIR:-}" ] && [ -z "${PREFIX:-}" ]; then
PREFIX="$(realpath "$(dirname "$0")/..")"
fi
: "${VERSION:=v0.5.1}"
: "${VERSION:=v0.7.1}"
: "${BINDIR:="${PREFIX}/bin"}"
: "${DEST:="${BINDIR}/buildx"}"