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

If we end up with an empty package list, return without erroring.

Change-Id: Id66aaf4bcb8c40ab720303a3ca92a46f92642369
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-04-17 16:19:44 -04:00 committed by eeldill
parent 482dcb1b56
commit 0c555a4126
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 $?