From 5b1ddd0b375c7993c26dc091a19cdd148f7ea47e Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Wed, 17 Apr 2019 22:52:09 -0500 Subject: [PATCH] lib: versions: use branch variable If branch is provided not use master. When buiding packages the master repository is used this is bad for stable releases. Use the BRANCH variable exported in releases. Signed-off-by: Jose Carlos Venegas Munoz --- scripts/lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lib.sh b/scripts/lib.sh index 87a72a2ec9..66a761c1a5 100644 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -32,7 +32,8 @@ install_yq() { get_from_kata_deps() { local dependency="$1" - local branch="${2:-master}" + BRANCH=${BRANCH:-master} + local branch="${2:-${BRANCH}}" local runtime_repo="github.com/kata-containers/runtime" GOPATH=${GOPATH:-${HOME}/go} # We will not query the local versions.yaml file here to allow releases to