🔨 In frontend build script get TAG value from env

This commit is contained in:
Vitaly Kornilov 2020-07-14 20:44:50 +03:00
parent e3e148c569
commit c0b7c0ccaa
No known key found for this signature in database
GPG Key ID: E51839A1997A5C99
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@
source ~/.bashrc
set -ex
TAG=`git log -n 1 --pretty=format:%H -- ./`
if [ -z "${TAG}" ]; then
export TAG=`git log -n 1 --pretty=format:%H -- ./`
fi
yarn install