Fix bin/set-pythonpath.sh for zsh

Change-Id: I706a42e48118bd16b769b571f7157543799018c5
Reviewed-on: http://gerrit.cloudera.org:8080/1587
Reviewed-by: Lars Volker <lv@cloudera.com>
Tested-by: Internal Jenkins
This commit is contained in:
Lars Volker
2015-12-03 18:05:26 -08:00
committed by Internal Jenkins
parent b02c349e25
commit 6f3e794058
3 changed files with 14 additions and 9 deletions

View File

@@ -92,11 +92,11 @@ done
# Copy all the shell files into the build dir
# The location of python libs for thrift is different in rhel/centos/sles
if [ -d ${THRIFT_HOME}python/lib/python*/site-packages/thrift ]; then
cp -r ${THRIFT_HOME}python/lib/python*/site-packages/thrift\
if [ -d ${THRIFT_HOME}/python/lib/python*/site-packages/thrift ]; then
cp -r ${THRIFT_HOME}/python/lib/python*/site-packages/thrift\
${TARBALL_ROOT}/lib
else
cp -r ${THRIFT_HOME}python/lib64/python*/site-packages/thrift\
cp -r ${THRIFT_HOME}/python/lib64/python*/site-packages/thrift\
${TARBALL_ROOT}/lib
fi
cp -r ${SHELL_HOME}/gen-py ${TARBALL_ROOT}