From d83bbbe01e55fb1fdf6794dc1474e539e348dbf3 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 20 Sep 2023 11:16:07 -0400 Subject: [PATCH] Fix image build/push repo. arg. check Likely a typo of variable name, was always intended to check vs the full URL, not just the name. Signed-off-by: Chris Evich --- build-push/bin/containers_build_push.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-push/bin/containers_build_push.sh b/build-push/bin/containers_build_push.sh index 4e8d7866..9d13f560 100644 --- a/build-push/bin/containers_build_push.sh +++ b/build-push/bin/containers_build_push.sh @@ -63,8 +63,8 @@ ARCHES="${ARCHES:-amd64,ppc64le,s390x,arm64}" REPO_URL="$1" REPO_NAME=$(basename "${REPO_URL%.git}") -if [[ ! "$REPO_NAME" =~ github\.com ]] && [[ ! "$REPO_NAME" =~ testing ]]; then - die "Script requires a repo hosted on github, received '$REPO_NAME'." +if [[ ! "$REPO_URL" =~ github\.com ]] && [[ ! "$REPO_URL" =~ testing ]]; then + die "Script requires a repo hosted on github, received '$REPO_URL'." fi # Second arg (CTX_SUB) is the context subdirectory relative to the clone path