From 392b574fa533f24961d2ec68b47ac36b609d52c8 Mon Sep 17 00:00:00 2001 From: tcecyk Date: Sat, 22 Jul 2023 10:07:12 +0200 Subject: [PATCH] fix duplicate typo error in url param --- build-community.sh | 2 +- src/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-community.sh b/build-community.sh index 1895b1c..3a28c3d 100755 --- a/build-community.sh +++ b/build-community.sh @@ -139,7 +139,7 @@ for branch in ${BRANCH_NAME//,/ }; do yes | repo init -u "$REPO" --reference "$MIRROR_DIR" -b "$branch" &>> "$repo_log" else TAG_PREFIX="" - if curl -s https://gitlab.e.foundation/api/v4/projects/659/repository/tags?search?${BRANCH_NAME} | jq -r ".[].name" | grep -q "${BRANCH_NAME}" + if curl -s https://gitlab.e.foundation/api/v4/projects/659/repository/tags?search=${BRANCH_NAME} | jq -r ".[].name" | grep -q "${BRANCH_NAME}" then echo ">> [$(date)] Branch name $branch is a tag on e/os/releases, prefix with refs/tags/ for 'repo init'" TAG_PREFIX="refs/tags/" diff --git a/src/build.sh b/src/build.sh index 7bb96bd..c9599f9 100755 --- a/src/build.sh +++ b/src/build.sh @@ -92,7 +92,7 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then echo ">> [$(date)] (Re)initializing branch repository" TAG_PREFIX="" - if curl -s https://gitlab.e.foundation/api/v4/projects/659/repository/tags?search?${BRANCH_NAME} | jq -r ".[].name" | grep -q ${BRANCH_NAME} + if curl -s https://gitlab.e.foundation/api/v4/projects/659/repository/tags?search=${BRANCH_NAME} | jq -r ".[].name" | grep -q ${BRANCH_NAME} then echo ">> [$(date)] Branch name ${BRANCH_NAME} is a tag on e/os/releases, prefix with refs/tags/ for 'repo init'" TAG_PREFIX="refs/tags/" -- GitLab