1
0
Fork 0
mirror of https://github.com/Luzifer/arch-update.git synced 2024-12-29 23:21:16 +00:00

Fix unreliable service listing

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-05-20 23:23:17 +02:00
parent fb50927db9
commit fa498355eb
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ source=(
arch-update.service arch-update.service
arch-update.timer arch-update.timer
) )
sha512sums=('af38ea3c914e37e108663f1f0a3aa0b3ebcb42f4e279a45d019ffc22f65733c6c8b04c260d0dd3902557346a1e2247f80067964ccb298badc7b59330322c96a1' sha512sums=('16c771a551ceacb25513d5a775f75e5beb690659b3573cefaeee09348c1582f66df0755c7258898929e46cd5ffc5f9d6dfde9e53b017e9244e4a02870992d86e'
'384a9fc9c7f43bd7e9ec9274b5e930e7e9e3dcea088f524201f0b359f33e470b9b120b6c261b82b2d484d7af937eb67ba2cdf7a0bda2ca424338da03e008a716' '384a9fc9c7f43bd7e9ec9274b5e930e7e9e3dcea088f524201f0b359f33e470b9b120b6c261b82b2d484d7af937eb67ba2cdf7a0bda2ca424338da03e008a716'
'f9b62fbc31d963525340c408ddacf671c54d9874b4decd1c84286b2a000ef488a85d738f7a3d83db34e9dd98baa84389aff837bdf68531712ba9eaa7a8d762bd') 'f9b62fbc31d963525340c408ddacf671c54d9874b4decd1c84286b2a000ef488a85d738f7a3d83db34e9dd98baa84389aff837bdf68531712ba9eaa7a8d762bd')

View file

@ -82,7 +82,7 @@ function main() { # ( )
services=() services=()
for package in "${packages[@]}"; do for package in "${packages[@]}"; do
if (systemctl list-units "${package}.service" | grep -q "^${package}.service .* active running .*$"); then if (systemctl is-active "${package}.service" >/dev/null); then
services+=("${package}.service") services+=("${package}.service")
fi fi
done done