Fix using PERCONA_TOOLKIT_BRANCH in build-packages when it's not already defined.

This commit is contained in:
Daniel Nichter
2011-07-19 14:58:51 -06:00
parent 39984204f8
commit c0025dd89f

View File

@@ -19,11 +19,12 @@ warn() {
exit_status=1
}
PERCONA_TOOLKIT_BRANCH=${PERCONA_TOOLKIT_BRANCH:-""}
if [ -n "$PERCONA_TOOLKIT_BRANCH" ]; then
BRANCH=$PERCONA_TOOLKIT_BRANCH
cd $BRANCH
else
while [ ! -f Makefile.PL ] && [ $(pwd) != "/" ]; do
while [ ! -f Makefile.PL ] && [ $PWD != "/" ]; do
cd ..
done
if [ ! -f Makefile.PL ]; then