From f3329f3fa7e0a1c11124ddb6743dffd4243d5076 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 4 Jan 2022 18:40:06 -0300 Subject: [PATCH] Refactor --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index cf463b8..1883f79 100755 --- a/install.sh +++ b/install.sh @@ -446,7 +446,7 @@ getDotfiles() { chsh -s $(which zsh) } -checkForGraphicalInterface() { +checkForSystemdUnits() { trap 'systemctl stop reflector; forceExit=true' INT calcHeightAndRun "whiptail --infobox \"Waiting for systemd units to finish ('reflector.service'). This may take a while, please wait.\" HEIGTH 61" journalctl --sync @@ -515,7 +515,7 @@ runScript() { if [ $i -gt 0 ]; then welcomeMsg="Welcome back to CocoASAIS!" else - checkForGraphicalInterface + checkForSystemdUnits welcomeMsg="Welcome to CocoASAIS!" fi