Skip to content

Commit 838e8d4

Browse files
authored
handle undefined variable in release scripts (#708)
1 parent cc36c3d commit 838e8d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/build-and-push-images.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fi
1212

1313
version="$(make -s -f "${makefile_path}" version)"
1414
platforms="linux/amd64"
15-
image_repository="${KO_DOCKER_REPO}"
15+
image_repository="${KO_DOCKER_REPO:-}"
1616
goproxy="direct|https://proxy.golang.org"
1717

1818
usage=$(cat << EOM

scripts/sync-readme-to-ecr-public.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if ! command -v jq; then
1111
fi
1212

1313
region="${AWS_REGION:-us-east-1}"
14-
repo_root="${KO_DOCKER_REPO}"
14+
repo_root="${KO_DOCKER_REPO:-}"
1515
version="$(make -s -f "${makefile_path}" version)"
1616

1717
usage=$(cat << EOM

0 commit comments

Comments
 (0)