Commit 4f94991a authored by Stefano Capitani's avatar Stefano Capitani

Add statment to parse right branch if we use git clone instead of buildiso -i

Signed-off-by: Stefano Capitani's avatarSte74 <stefano@manjaro.org>
parent c411f5bf
......@@ -317,6 +317,15 @@ init_buildiso(){
[[ -z ${kernel} ]] && kernel="linux414"
load_run_dir "${profile_repo}"
if [[ -d ${run_dir}/.git ]]; then
cd ${run_dir}
branch=$(git rev-parse --abbrev-ref HEAD)
else
[[ -z ${branch} ]] && branch="v17.1" #current branch release
fi
[[ -z ${branch} ]] && branch="v17.1" #current branch release
[[ -z ${gpgkey} ]] && gpgkey=''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment