From d2237ae73c5b4ba9a499dfd73e9a088a56b5f33a Mon Sep 17 00:00:00 2001 From: TessaiMusa <49408514+TessaiMusa@users.noreply.github.com> Date: Thu, 21 Oct 2021 09:17:05 +0530 Subject: [PATCH] Fixed more bugs --- archfi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archfi b/archfi index e8089ff..f224970 100644 --- a/archfi +++ b/archfi @@ -769,8 +769,10 @@ installmenu(){ numpkg=$(whiptail --backtitle "${apptitle}" --title "Number of packages to download at once" --inputbox "" 0 0 "5" 3>&1 1>&2 2>&3) if [ "$?" = "0" ]; then if [[ "$numpkg" =~ ^[1-9][0-9]*$ ]] ; then - sed -i "'s/ParallelDownloads/ParallelDownloads = ' ${numpkg}" >> /etc/pacman.conf + sed -i "s/.*ParallelDownloads.*/ParallelDownloads = ${numpkg}/" /etc/pacman.conf + else + clear echo 'Please enter number greater 0' pressanykey fi