From 50f0ded913114d9602468d727efa15200eef7f64 Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Tue, 1 May 2018 15:48:53 +0000 Subject: [PATCH] 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 --- tools/tox_install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/tox_install.sh b/tools/tox_install.sh index e61b63a8..05c58b33 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 $?