Use "$*" instead of "$@" in tox_install.sh

Checking for no arguments via

[ -z "$@" ]

works if there's zero or one arguments, but breaks if there's more than
one:

[: too many arguments

Checking via

[ -z "$*" ]

does not suffer this malady.

Co-Authored-By: Elod Illes <elod.illes@ericsson.com>

Change-Id: Ieb36a775c6a1db027e0be684851582265fbb5f48
This commit is contained in:
Eric Fried 2018-05-11 11:22:31 -05:00
parent d051c80a74
commit 855c4182af
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ fi
# install will be constrained and we need to unconstrain it.
edit-constraints $localfile -- $LIB_NAME "-e $LIB_LOCATION"
if [ -z "$@" ]; then
if [ -z "$*" ]; then
echo "No packages to be installed."
exit 0
fi