add comments to fix sed compatibility issue between BSD and GNU versions

This commit is contained in:
Penghao Cen 2016-08-05 13:10:48 +08:00
parent cb9db4b0d1
commit 2074af56b3

View File

@ -20,6 +20,12 @@ do
fi fi
done 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 #remove space
echo "Remove space.." echo "Remove space.."
sed 's/ \+/ /g' -i /tmp/harbor.app.temp.js sed 's/ \+/ /g' -i /tmp/harbor.app.temp.js