Quote potentially empty vars.

This was causing an error if $PROJECT was empty (eg, periodic jobs).

Change-Id: Ia05a8a0166d356491217dbf6e00938c4586c80ab
This commit is contained in:
James E. Blair
2012-11-09 18:28:13 +01:00
parent 21c099b2c2
commit 63edd97b9b

View File

@@ -130,7 +130,7 @@ function setup_workspace {
git reset --hard FETCH_HEAD
git clean -x -f -d -q
else
if [ $PROJECT == $ZUUL_PROJECT ]; then
if [ "$PROJECT" == "$ZUUL_PROJECT" ]; then
echo "Unable to find ref $ZUUL_REF for $PROJECT"
exit 1
fi