Skip to content

Commit fdc5b58

Browse files
authored
Merge pull request #36 from layer5io/fitzergerald-patch-2
Create latest_release.sh
2 parents 8ef5e45 + f61e9cf commit fdc5b58

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

install/latest_release.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
3+
# GIT_REF=`git symbolic-ref HEAD`
4+
# if [[ $GIT_REF = refs/tags* ]]
5+
# then
6+
# RELEASE_CHANNEL="stable"
7+
# # export RELEASE_CHANNEL="stable"
8+
# else
9+
# RELEASE_CHANNEL="edge"
10+
# # export RELEASE_CHANNEL="edge"
11+
# fi
12+
# # echo "Release channel determined to be $RELEASE_CHANNEL"
13+
# LATEST_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
14+
GIT_REF=`git symbolic-ref HEAD`
15+
if [[ $GIT_REF = refs/tags* ]]
16+
then
17+
RELEASE_CHANNEL="stable"
18+
# export RELEASE_CHANNEL="stable"
19+
else
20+
RELEASE_CHANNEL="edge"
21+
# export RELEASE_CHANNEL="edge"
22+
fi
23+
echo "Release channel determined to be $RELEASE_CHANNEL"
24+
echo LATEST_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always)
25+
echo GIT_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always)
26+
echo GIT_STRIPPED_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always | cut -c 2-)
27+
# env

0 commit comments

Comments
 (0)