From c7717ad498a21f6bde113b861732f61fba06c346 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 12 Jan 2022 23:33:38 -0300 Subject: [PATCH] Refactor --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index d3a0295..e119b70 100755 --- a/install.sh +++ b/install.sh @@ -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" whiptail --yesno "Would you like to choose your closest countries to narrow the search?" 0 0 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 curl -o /etc/pacman.d/mirrorlist.pacnew https://archlinux.org/mirrorlist/all/ 2>&1 | debug local IFS=$'\n' @@ -581,9 +581,9 @@ runScript() { if [ $i -gt 0 ]; then welcomeMsg="Welcome back to CocoASAIS!" else - systemctl stop reflector.service 2>&1 | debug + systemctl stop reflector.service checkForSystemdUnit "systemd units" "graphical.target" - systemctl --no-block start reflector.service + systemctl --no-block start reflector.service welcomeMsg="Welcome to CocoASAIS!" fi