Update checkForSystemdUnit()
This commit is contained in:
parent
b12c57a16a
commit
1aa3003d45
|
@ -524,8 +524,8 @@ checkForSystemdUnit() {
|
||||||
trapBackup=$(trap)
|
trapBackup=$(trap)
|
||||||
trap 'systemctl stop ${2}; forceExit=true' INT
|
trap 'systemctl stop ${2}; forceExit=true' INT
|
||||||
forceExit=false
|
forceExit=false
|
||||||
command -v dialog &> /dev/null
|
commOutput=$(command -v paru > /dev/null 2>&1 && echo 0)
|
||||||
if [ $? -eq 0 ]; then
|
if [ "$commOutput" = "0" ]; then
|
||||||
calcAndRun dialog --infobox "\"\nWaiting for the ${1} to finish. Please wait.\"" 5 WIDTH
|
calcAndRun dialog --infobox "\"\nWaiting for the ${1} to finish. Please wait.\"" 5 WIDTH
|
||||||
fi
|
fi
|
||||||
if [ "${3}" = "oneshot" ]; then
|
if [ "${3}" = "oneshot" ]; then
|
||||||
|
|
Loading…
Reference in New Issue