Fix bug
This commit is contained in:
parent
2cd54829d3
commit
3a6a7233fc
|
@ -515,12 +515,12 @@ getDotfiles() {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkForSystemdUnit() {
|
checkForSystemdUnit() {
|
||||||
trap 'systemctl stop ${2}; forceExit=true' INT
|
|
||||||
if [ "${3}" = "oneshot" ]; then
|
if [ "${3}" = "oneshot" ]; then
|
||||||
[ "$(systemctl show -p ActiveState --value "${2}")" = "inactive" ] && return
|
[ "$(systemctl show -p ActiveState --value "${2}")" = "inactive" ] && return
|
||||||
else
|
else
|
||||||
systemctl is-active --quiet "${2}" && return
|
systemctl is-active --quiet "${2}" && return
|
||||||
fi
|
fi
|
||||||
|
trap 'systemctl stop ${2}; forceExit=true' INT
|
||||||
forceExit=false
|
forceExit=false
|
||||||
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
|
||||||
if [ "${3}" = "oneshot" ]; then
|
if [ "${3}" = "oneshot" ]; then
|
||||||
|
|
Loading…
Reference in New Issue