summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-04-17 16:19:44 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-04-17 16:20:14 -0400
commit7c1f4c28470033ab57d2850479019428ce7cf64d (patch)
tree4d9134d23184aa593d32031737cfabd8dfda83bd
parent8c1fccf72ef1d5321f9f810567971141878a3d50 (diff)
downloadtaskflow-7c1f4c28470033ab57d2850479019428ce7cf64d.tar.gz
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>
-rwxr-xr-xtools/tox_install.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/tox_install.sh b/tools/tox_install.sh
index e61b63a..05c58b3 100755
--- a/tools/tox_install.sh
+++ b/tools/tox_install.sh
@@ -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 $?