removed trailing slash when looking for integration branch

This commit is contained in:
Tim Chamberlain
2025-03-25 13:51:16 -05:00
parent 7af23e52d6
commit c314f42edc

View File

@ -27,14 +27,14 @@ if [ \! $(echo "$REVISION" | grep SNAPSHOT) ]; then
fi fi
################################################################################## ##################################################################################
## ## figure out if we need a SLUG: a snapshot- tag, or an integration/ branch ## ## ## figure out if we need a SLUG: a snapshot- tag, or an integration branch ##
################################################################################## ##################################################################################
SLUG="" SLUG=""
if [ $(echo "$CIRCLE_TAG" | grep ^snapshot-) ]; then if [ $(echo "$CIRCLE_TAG" | grep ^snapshot-) ]; then
SLUG=$(echo "$CIRCLE_TAG" | sed "s/^snapshot-//")- SLUG=$(echo "$CIRCLE_TAG" | sed "s/^snapshot-//")-
echo "Using slug [$SLUG] from tag [$CIRCLE_TAG]" echo "Using slug [$SLUG] from tag [$CIRCLE_TAG]"
elif [ $(echo "$CIRCLE_BRANCH" | grep ^integration/) ]; then elif [ $(echo "$CIRCLE_BRANCH" | grep ^integration) ]; then
SLUG=$(echo "$CIRCLE_BRANCH" | sed "s,/,-,g")- SLUG=$(echo "$CIRCLE_BRANCH" | sed "s,/,-,g")-
echo "Using slug [$SLUG] from branch [$CIRCLE_BRANCH]" echo "Using slug [$SLUG] from branch [$CIRCLE_BRANCH]"
fi fi