forked from mirrored-repos/manjaro-tools
[mkchroot] update url or ftp.manjaro.org
This commit is contained in:
parent
225ace7417
commit
fdf797e2fb
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ fi
|
|||
# Workaround when creating a chroot in a branch different of the host
|
||||
if [[ -n $pac_conf ]] && [[ -n $mirrors_conf ]] && [[ -n ${build_mirror} ]]; then
|
||||
url=${build_mirror}'/$repo/$arch'
|
||||
[[ ${build_mirror} = *repo.manjaro* ]] && show_mirror=repo.manjaro.org'/$repo/$arch' || show_mirror=$url
|
||||
[[ ${build_mirror} = *ftp*repo.manjaro.org* ]] && show_mirror=repo.manjaro.org'/$repo/$arch' || show_mirror=$url
|
||||
info "mirror: %s" "$show_mirror"
|
||||
pac_base="$working_dir/pacman-basestrap.conf"
|
||||
sed "s#Include = /etc/pacman.d/mirrorlist#Server = ${url}#g" $pac_conf > $pac_base
|
||||
|
|
Loading…
Reference in a new issue