ParallelDownloads now apply to installed system

This commit is contained in:
TessaiMusa 2021-11-13 18:38:11 +05:30
parent c0d3ea0a72
commit 02e85750b5

4
archfi
View file

@ -831,6 +831,7 @@ paralleldownloads() {
sed -i "s/.*ParallelDownloads.*/ParallelDownloads = ${numpkg}/" /etc/pacman.conf sed -i "s/.*ParallelDownloads.*/ParallelDownloads = ${numpkg}/" /etc/pacman.conf
else else
clear clear
unset numpkg
echo ${txtincorrectinput} echo ${txtincorrectinput}
pressanykey pressanykey
fi fi
@ -931,6 +932,9 @@ installbase(){
clear clear
echo "pacstrap /mnt ${pkgs}" echo "pacstrap /mnt ${pkgs}"
pacstrap /mnt ${pkgs} pacstrap /mnt ${pkgs}
if [ ! -z $numpkg ]; then
sed -i "s/.*ParallelDownloads.*/ParallelDownloads = ${numpkg}/" /mnt/etc/pacman.conf
fi
pressanykey pressanykey
} }