From 838e8d49ee074e3d38e6d56ac3c94a00ac14223f Mon Sep 17 00:00:00 2001 From: Jerad C Date: Tue, 18 Oct 2022 14:01:12 -0500 Subject: [PATCH] handle undefined variable in release scripts (#708) --- scripts/build-and-push-images.sh | 2 +- scripts/sync-readme-to-ecr-public.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build-and-push-images.sh b/scripts/build-and-push-images.sh index 721c33e8..880d195a 100755 --- a/scripts/build-and-push-images.sh +++ b/scripts/build-and-push-images.sh @@ -12,7 +12,7 @@ fi version="$(make -s -f "${makefile_path}" version)" platforms="linux/amd64" -image_repository="${KO_DOCKER_REPO}" +image_repository="${KO_DOCKER_REPO:-}" goproxy="direct|https://proxy.golang.org" usage=$(cat << EOM diff --git a/scripts/sync-readme-to-ecr-public.sh b/scripts/sync-readme-to-ecr-public.sh index 6cd35214..2c07322f 100644 --- a/scripts/sync-readme-to-ecr-public.sh +++ b/scripts/sync-readme-to-ecr-public.sh @@ -11,7 +11,7 @@ if ! command -v jq; then fi region="${AWS_REGION:-us-east-1}" -repo_root="${KO_DOCKER_REPO}" +repo_root="${KO_DOCKER_REPO:-}" version="$(make -s -f "${makefile_path}" version)" usage=$(cat << EOM