From 5d82072e7060f5fed4fee8d9332aadbd3e9ddbb6 Mon Sep 17 00:00:00 2001 From: Jarrad Whitaker Date: Thu, 30 Jul 2020 11:56:30 +1000 Subject: [PATCH] add optional tag suffix to build script, e.g. "build.sh 5.53.0 +components1" --- component-tools/build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/component-tools/build.sh b/component-tools/build.sh index c17f23b6..c3c0e256 100755 --- a/component-tools/build.sh +++ b/component-tools/build.sh @@ -6,7 +6,10 @@ if [[ -z "$1" ]]; then exit -1 fi -TAG="$1" +VERSION="$1" +SUFFIX="$2" + +TAG="$VERSION$SUFFIX" if [[ ! -z "$(git tag | grep "^$TAG\$")" ]]; then echo "tag $1 already exists" @@ -18,7 +21,7 @@ test -f "$work/$0" td="$(mktemp -d)" cd "$td" -npm install codemirror@$TAG +npm install codemirror@$VERSION cd "$work"