Merge "Fix use of VIRTHOST variable on quickstart.sh"

This commit is contained in:
Zuul 2019-03-21 20:24:55 +00:00 committed by Gerrit Code Review
commit 8b6c6c5246
1 changed files with 2 additions and 2 deletions

View File

@ -482,12 +482,12 @@ if [ "$OPT_BOOTSTRAP" = 1 ] || ! [ -f "$OPT_WORKDIR/bin/activate" ]; then
fi
if [ "$#" -lt 1 ]; then
if ["${VIRTHOST:-}" == ""]; then
if [ "${VIRTHOST:-}" == "" ]; then
echo "ERROR: You didn't specify a target machine and VIRTHOST is not defined" >&2
usage >&2
exit 2
else
echo "NOTICE: Using VIRTHOST=$VIRHOST as target machine" >&2
echo "NOTICE: Using VIRTHOST=$VIRTHOST as target machine" >&2
fi
else
VIRTHOST=$1