Fixed critical bugs
This commit is contained in:
parent
f8ec8488ed
commit
7f1b9c3aab
1 changed files with 4 additions and 4 deletions
8
archfi
8
archfi
|
@ -740,7 +740,7 @@ installmenu(){
|
||||||
#options+=("${txtselectmirrorsbycountry}" "(${txtoptional})")
|
#options+=("${txtselectmirrorsbycountry}" "(${txtoptional})")
|
||||||
options+=("${txteditmirrorlist}" "(${txtoptional})")
|
options+=("${txteditmirrorlist}" "(${txtoptional})")
|
||||||
options+=("${txtfiltermirrorlist}" "reflector")
|
options+=("${txtfiltermirrorlist}" "reflector")
|
||||||
outputs+=("Parallel downloads of packages" "")
|
options+=("Parallel downloads of packages" "(${txtoptional})")
|
||||||
options+=("${txtinstallarchlinux}" "pacstrap")
|
options+=("${txtinstallarchlinux}" "pacstrap")
|
||||||
options+=("${txtconfigarchlinux}" "")
|
options+=("${txtconfigarchlinux}" "")
|
||||||
sel=$(whiptail --backtitle "${apptitle}" --title "${txtinstallmenu}" --menu "" --cancel-button "${txtunmount}" --default-item "${nextitem}" 0 0 0 \
|
sel=$(whiptail --backtitle "${apptitle}" --title "${txtinstallmenu}" --menu "" --cancel-button "${txtunmount}" --default-item "${nextitem}" 0 0 0 \
|
||||||
|
@ -766,10 +766,10 @@ installmenu(){
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"Parallel downloads of packages")
|
"Parallel downloads of packages")
|
||||||
numpkg=$(whiptail --backtitle "${apptitle}" --title "Number of packages to download at once" --inputbox "" 0 0 "archlinux" 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
|
||||||
echo "ParallelDownloads = ${numpkg}" >> /etc/pacman.conf
|
sed -i "'s/ParallelDownloads/ParallelDownloads = ' ${numpkg}" >> /etc/pacman.conf
|
||||||
else
|
else
|
||||||
echo 'Please enter number greater 0'
|
echo 'Please enter number greater 0'
|
||||||
pressanykey
|
pressanykey
|
||||||
|
|
Loading…
Reference in a new issue