Don't let tox_install.sh error if there is nothing to do

If the package list is empty just exit successfully.

Change-Id: I1ab896cd99730ab9246cf14e440c25cfd6280df0
This commit is contained in:
Ben Nemec 2018-05-01 15:48:53 +00:00
parent 27dfd49978
commit 50f0ded913
1 changed files with 5 additions and 0 deletions

View File

@ -26,5 +26,10 @@ pip install -c"$localfile" openstack-requirements
# install will be constrained and we need to unconstrain it.
edit-constraints "$localfile" -- "$CLIENT_NAME"
if [ -z "$@" ]; then
echo "No packages to be installed."
exit 0
fi
pip install -c"$localfile" -U "$@"
exit $?