Refactor
This commit is contained in:
parent
d4f382b9a0
commit
c7717ad498
|
@ -381,7 +381,7 @@ updateMirrors() {
|
||||||
calcHeightAndRun "whiptail --msgbox \"Now, we will update the mirror list by taking the most recently synchronized HTTPS mirrors sorted by download rate.\" HEIGHT 65"
|
calcHeightAndRun "whiptail --msgbox \"Now, we will update the mirror list by taking the most recently synchronized HTTPS mirrors sorted by download rate.\" HEIGHT 65"
|
||||||
whiptail --yesno "Would you like to choose your closest countries to narrow the search?" 0 0
|
whiptail --yesno "Would you like to choose your closest countries to narrow the search?" 0 0
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
systemctl stop reflector.service 2>&1 | debug
|
systemctl stop reflector.service
|
||||||
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
|
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
|
||||||
curl -o /etc/pacman.d/mirrorlist.pacnew https://archlinux.org/mirrorlist/all/ 2>&1 | debug
|
curl -o /etc/pacman.d/mirrorlist.pacnew https://archlinux.org/mirrorlist/all/ 2>&1 | debug
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
|
@ -581,7 +581,7 @@ runScript() {
|
||||||
if [ $i -gt 0 ]; then
|
if [ $i -gt 0 ]; then
|
||||||
welcomeMsg="Welcome back to CocoASAIS!"
|
welcomeMsg="Welcome back to CocoASAIS!"
|
||||||
else
|
else
|
||||||
systemctl stop reflector.service 2>&1 | debug
|
systemctl stop reflector.service
|
||||||
checkForSystemdUnit "systemd units" "graphical.target"
|
checkForSystemdUnit "systemd units" "graphical.target"
|
||||||
systemctl --no-block start reflector.service
|
systemctl --no-block start reflector.service
|
||||||
welcomeMsg="Welcome to CocoASAIS!"
|
welcomeMsg="Welcome to CocoASAIS!"
|
||||||
|
|
Loading…
Reference in New Issue