This commit solve the issue during buildpkg: set the right working tree path

Signed-off-by: Ste74 <stefano@manjaro.org>
This commit is contained in:
Ste74 2018-09-28 22:21:21 +02:00
parent 4f94991a17
commit 84c70221ce
No known key found for this signature in database
GPG key ID: 8DB9F8C18DF53602

View file

@ -320,13 +320,13 @@ init_buildiso(){
load_run_dir "${profile_repo}"
if [[ -d ${run_dir}/.git ]]; then
current_path=$(pwd)
cd ${run_dir}
branch=$(git rev-parse --abbrev-ref HEAD)
cd ${current_path}
else
[[ -z ${branch} ]] && branch="v17.1" #current branch release
fi
[[ -z ${branch} ]] && branch="v17.1" #current branch release
[[ -z ${gpgkey} ]] && gpgkey=''