Fix the ugly base directory path

Remove the '..' in the path like:
/home/jenkins/workspace/gate-kolla-dsvm-deploy-centos-binary/tools/../ansible/inventory/all-in-one

TrivialFix

Change-Id: I80724a9e876ed1826c65e08b55cfa08124d70eb9
This commit is contained in:
Allen Gao 2016-02-05 16:46:13 +08:00
parent 16630340c7
commit 343e736e62
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ function find_base_dir {
elif [[ ${dir_name} == "/usr/local/bin" ]]; then
BASEDIR=/usr/local/share/kolla
else
BASEDIR="${dir_name}/.."
BASEDIR="$(dirname ${dir_name})"
fi
}