From 8302892bfb379e4ccc5cd50343bb067b0d24b9f7 Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Wed, 17 Aug 2016 16:17:17 +0800 Subject: [PATCH] jsminify's basedir should be configurable --- Deploy/jsminify.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Deploy/jsminify.sh b/Deploy/jsminify.sh index fde2e8274..37808d98c 100755 --- a/Deploy/jsminify.sh +++ b/Deploy/jsminify.sh @@ -1,12 +1,18 @@ #!/bin/bash set -e echo "This shell will minify the Javascript in Harbor project." -echo "Usage: #jsminify [src] [dest]" +echo "Usage: #jsminify [src] [dest] [basedir]" #prepare workspace rm -rf $2 /tmp/harbor.app.temp.js -BASEPATH=/go/bin +if [ -z $3 ] +then + BASEPATH=/go/bin +else + BASEPATH=$3 +fi + #concat the js files from js include file echo "Concat js files..."