From c0b7c0ccaa9e51f725e636d8091bf128b579f20c Mon Sep 17 00:00:00 2001 From: Vitaly Kornilov Date: Tue, 14 Jul 2020 20:44:50 +0300 Subject: [PATCH] :hammer: In frontend build script get TAG value from env --- frontend/scripts/build-app.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/scripts/build-app.sh b/frontend/scripts/build-app.sh index 774a93d7c..bfbadbcf3 100755 --- a/frontend/scripts/build-app.sh +++ b/frontend/scripts/build-app.sh @@ -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