mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
removed trailing slash when looking for integration branch
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user