diff --git a/build-community.sh b/build-community.sh index 1895b1c553f19c51d418f94d6fefc1f57a7d9df4..3a28c3d6b2a7da18722d85f5700a925c94184666 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 7bb96bd588151c882466b47b1b899fa3a2fac458..c9599f995ea8e4d2cfc0f38c006b65a649b38f54 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/"