From 2074af56b377c47444351827b6c85df5a7c611c0 Mon Sep 17 00:00:00 2001 From: Penghao Cen Date: Fri, 5 Aug 2016 13:10:48 +0800 Subject: [PATCH] add comments to fix sed compatibility issue between BSD and GNU versions --- Deploy/jsminify.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Deploy/jsminify.sh b/Deploy/jsminify.sh index f89bdfee1..fde2e8274 100755 --- a/Deploy/jsminify.sh +++ b/Deploy/jsminify.sh @@ -20,6 +20,12 @@ do fi done +# If you want run this script on Mac OS X, +# I suggest you install gnu-sed (whth --with-default-names option). +# $ brew install gnu-sed --with-default-names +# Reference: +# http://stackoverflow.com/a/27834828/3167471 + #remove space echo "Remove space.." sed 's/ \+/ /g' -i /tmp/harbor.app.temp.js