Skip to content

Commit c58549e

Browse files
committed
fix variable
1 parent 3292143 commit c58549e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/git-tag.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

33
if [[ $TRAVIS_BRANCH == "master" ]]; then
4-
TAG_VERSION=$(npm view @alfresco/js-api@beta version)
4+
VERSION=$(npm view @alfresco/js-api@beta version)
55
else
6-
TAG_VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
6+
VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
77
fi;
88

9-
echo $TAG_VERSION
9+
echo $VERSION
1010

1111
echo "git tag -a ${VERSION} -m ${VERSION}"
1212
git config --local user.name "eromano"

0 commit comments

Comments
 (0)