bug fix.. resulted in following error message:

./exercise.sh: line 96: [: missing `]'
This commit is contained in:
Justin Shepherd 2011-10-26 10:45:02 -05:00
parent c99d4ad156
commit 56a505fc2d

View File

@ -93,7 +93,7 @@ IP=`nova show $NAME | grep "private network" | cut -d"|" -f3`
# for single node deployments, we can ping private ips # for single node deployments, we can ping private ips
MULTI_HOST=${MULTI_HOST:-0} MULTI_HOST=${MULTI_HOST:-0}
if [ "$MULTI_HOST" = "0"]; then if [ "$MULTI_HOST" = "0" ]; then
# ping it once (timeout of a second) # ping it once (timeout of a second)
ping -c1 -w1 $IP || true ping -c1 -w1 $IP || true