Fix: grep https not work

Add space before right braket

Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
Qian Deng 2019-04-15 14:32:36 +08:00
parent 2eed72c445
commit 0e8436263f

View File

@ -192,7 +192,7 @@ docker-compose up -d
protocol=http
hostname=reg.mydomain.com
if [ -n "$(grep '^[^#]*https:' ./harbor.yml)"]
if [ -n "$(grep '^[^#]*https:' ./harbor.yml)" ]
then
protocol=https
fi