build.sh: fix test error message when modules file not supplied
commitb2d506d51413f1e819b2abd89baaa920d20f226e
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sun, 5 Feb 2012 18:55:18 +0000 (5 10:55 -0800)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Fri, 10 Feb 2012 06:21:48 +0000 (9 22:21 -0800)
treecee6b7d49cb97d3ceb2ea292efc70a69415d8813
parent43cdf15f36b6068cc2a7ab73bdc13aa758bf4892
build.sh: fix test error message when modules file not supplied

Seems to be harmless, just noisy message:
git/util/modular/build.sh[1323]: [: argument expected

sh -x shows it was coming from expanding:
if [ X"$BUILT_MODULES_FILE" != X -a -r $BUILT_MODULES_FILE ]

to:
+ [ X '!=' X -a -r ]

Adding quotes ensures the shell sees an empty argument instead of none.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
build.sh