fix(dev-db/etcd): Fix filtering of blank lines from c10n peer list

This commit is contained in:
Michael Marineau 2014-02-11 17:53:31 -08:00
parent 15886b7958
commit 9c31afccda

View File

@ -31,7 +31,7 @@ if [ -e $BOOTSTRAP_DISCO ]; then
ARGS="${ARGS} -discovery ${DISCOVERY_URL}"
elif [ -e $BOOTSTRAP_PEERS ]; then
IPS=$(grep -v $MY_IP $BOOTSTRAP_PEERS | grep -v '^\n$' | sed 's/$/:7001/'| tr '\n' ','| sed 's/^,//' | sed 's/,$//')
IPS=$(grep -v $MY_IP $BOOTSTRAP_PEERS | grep -v '^$' | sed 's/$/:7001/'| tr '\n' ','| sed 's/^,//' | sed 's/,$//')
if [ -n "$IPS" ]; then
ARGS="${ARGS} -C ${IPS}"
fi