From 3a6a7233fc023d944112b7c11dbdcaccd29ca226 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 29 Jan 2022 13:14:58 -0300 Subject: [PATCH] Fix bug --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 8bf6d6b..bf9b816 100755 --- a/install.sh +++ b/install.sh @@ -515,12 +515,12 @@ getDotfiles() { } checkForSystemdUnit() { - trap 'systemctl stop ${2}; forceExit=true' INT if [ "${3}" = "oneshot" ]; then [ "$(systemctl show -p ActiveState --value "${2}")" = "inactive" ] && return else systemctl is-active --quiet "${2}" && return fi + trap 'systemctl stop ${2}; forceExit=true' INT forceExit=false calcAndRun dialog --infobox "\"\nWaiting for the ${1} to finish. Please wait.\"" 5 WIDTH if [ "${3}" = "oneshot" ]; then