Skip to content

Commit

Permalink
docs: fix image tag validation in script (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvindthiru authored Aug 8, 2024
1 parent f0cfb0a commit 08bfefc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/membership/joinMC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ if [ "$#" -lt 4 ]; then
fi

export FLEET_IMAGE_TAG="$1"
if [[ $(curl "https://api.github.com/repos/Azure/fleet/tags") != *$1* ]] > /dev/null 2>&1; then
if [[ $(curl "https://api.github.com/repos/Azure/fleet/tags") != *"$1"* ]] > /dev/null 2>&1; then
echo "fleet image tag $1 does not exist"
exit 1
fi

export FLEET_NETWORKING_AGENT_IMAGE_TAG="$2"
if [[ $(curl "https://api.github.com/repos/Azure/fleet-networking/tags") != *$2* ]] > /dev/null 2>&1; then
if [[ $(curl "https://api.github.com/repos/Azure/fleet-networking/tags") != *"$2"* ]] > /dev/null 2>&1; then
echo "fleet networking image tag $2 does not exist"
exit 1
fi
Expand Down

0 comments on commit 08bfefc

Please sign in to comment.