From 1aa3003d45beae2cf1870510cab5346e6d1acc0c Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 19 Apr 2022 14:01:42 -0300 Subject: [PATCH] Update checkForSystemdUnit() --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index ef6269f..fe664a4 100755 --- a/install.sh +++ b/install.sh @@ -524,8 +524,8 @@ checkForSystemdUnit() { trapBackup=$(trap) trap 'systemctl stop ${2}; forceExit=true' INT forceExit=false - command -v dialog &> /dev/null - if [ $? -eq 0 ]; then + commOutput=$(command -v paru > /dev/null 2>&1 && echo 0) + if [ "$commOutput" = "0" ]; then calcAndRun dialog --infobox "\"\nWaiting for the ${1} to finish. Please wait.\"" 5 WIDTH fi if [ "${3}" = "oneshot" ]; then