Fixed more bugs
This commit is contained in:
parent
7f1b9c3aab
commit
d2237ae73c
1 changed files with 3 additions and 1 deletions
4
archfi
4
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)
|
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 [ "$?" = "0" ]; then
|
||||||
if [[ "$numpkg" =~ ^[1-9][0-9]*$ ]] ; 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
|
else
|
||||||
|
clear
|
||||||
echo 'Please enter number greater 0'
|
echo 'Please enter number greater 0'
|
||||||
pressanykey
|
pressanykey
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue