diff --git a/Deploy/jsminify.sh b/Deploy/jsminify.sh index 177a3505d..f89bdfee1 100755 --- a/Deploy/jsminify.sh +++ b/Deploy/jsminify.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e echo "This shell will minify the Javascript in Harbor project." echo "Usage: #jsminify [src] [dest]" @@ -9,26 +9,26 @@ rm -rf $2 /tmp/harbor.app.temp.js BASEPATH=/go/bin #concat the js files from js include file echo "Concat js files..." -cat $1 |while read LINE + +cat $1 | while read LINE || [[ -n $LINE ]] do if [ -n "$LINE" ] then TEMP="$BASEPATH""$LINE" - cat `echo "$TEMP" | sed 's/