From 7903a916e282a43c3bc3f29e47d38271064a6efb Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 14 Jan 2022 02:34:43 +0100 Subject: [PATCH] Fix build script --- scripts/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 64f4dbfcd..0c230ad43 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -23,11 +23,11 @@ fi cp -r assets/layers/ dist/assets/layers/ cp -r assets/themes/ dist/assets/themes/ cp -r assets/svg/ dist/assets/svg/ -SRC_MAPS="--no-source-maps" -BRANCH=${git rev-parse --abbrev-ref HEAD} +SRC_MAPS="--no-source-maps" +BRANCH=`git rev-parse --abbrev-ref HEAD` echo "The branch name is $BRANCH" -if [ $BRANCH ="develop" ] +if [ $BRANCH = "develop" ] then SRC_MAPS="" echo "Source maps are enabled"