Skip to content

Commit

Permalink
Fix image build/push repo. arg. check
Browse files Browse the repository at this point in the history
Likely a typo of variable name, was always intended to check vs the full
URL, not just the name.

Signed-off-by: Chris Evich <[email protected]>
  • Loading branch information
cevich committed Sep 20, 2023
1 parent cdab3b2 commit d83bbbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-push/bin/containers_build_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d83bbbe

Please sign in to comment.