Merge "Checks the installation of curl command, Nova, Neutron and OpenStack packages related-bug: 1552433"

This commit is contained in:
Jenkins 2016-03-08 22:34:25 +00:00 committed by Gerrit Code Review
commit 8c2351ed7d
1 changed files with 6 additions and 1 deletions

View File

@ -11,7 +11,12 @@ unset LANG
unset LANGUAGE
LC_ALL=C
export LC_ALL
for i in curl nova neutron openstack; do
if [[ ! $(which $i) ]]; then
echo "$i not installed. Please install $i before proceeding"
exit 1
fi
done
# Move to top level directory
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.."