Skip to content
Snippets Groups Projects
Commit 8bee407e authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix : indentation block

parent 52cff541
No related branches found
No related tags found
No related merge requests found
......@@ -99,13 +99,18 @@
| reverse
' <<<$(curl -s "$DEP_API_URL/repository/tags?per_page=100"))
if [[ $(jq length <<< $DEP_TAGS) == 0 ]]; then
echo "No tag found for $DEP_NAME at url $DEP_API_URL/repository/tags?per_page=100"
echo "Leaving early."
exit 1
fi
if [[ $(jq length <<< $DEP_TAGS) == 0 ]]; then
echo "No tag found for $DEP_NAME at url $DEP_API_URL/repository/tags?per_page=100"
echo "Leaving early."
exit 1
fi
echo "Looking for latest fix release corresponding to minor release : v$TAG_MAJOR.$TAG_MINOR.*"
echo "Looking for latest fix release corresponding to minor release : v$TAG_MAJOR.$TAG_MINOR.*"
SELECTED_DEPS_TAGS=$(jq --arg major "$TAG_MAJOR" \
--arg minor "$TAG_MINOR" \
'map(select(.name | startswith("v\($major).\($minor).")))' <<< "$DEP_TAGS")
if [[ $(jq length <<< $SELECTED_DEPS_TAGS) == 0 ]]; then
echo "No release v$TAG_MAJOR.$TAG_MINOR.* found. Looking for latest minor release v$TAG_MAJOR.*.* in $DEP_NAME."
SELECTED_DEPS_TAGS=$(jq --arg major "$TAG_MAJOR" \
--arg minor "$TAG_MINOR" \
'map(select(.name | startswith("v\($major).\($minor).")))' <<< "$DEP_TAGS")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment