Skip to content

Commit

Permalink
Merge pull request #45 from lbr38/devel
Browse files Browse the repository at this point in the history
2.2.8
  • Loading branch information
lbr38 authored Jun 19, 2023
2 parents 98d5df4 + 5c07c15 commit 7860560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/02_check-packages-before-update
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function checkPackagesBeforeUpdate
# Run through SERVICES_TO_RESTART
for SERVICE in "${SERVICES_TO_RESTART[@]}"; do
# Check if specified service really exists, if yes then add it to the final services to restart list
if systemctl list-units --all -t service --full | grep "${SERVICE}.service";then
if systemctl list-units --all -t service --full | grep -q "${SERVICE}.service";then
SERVICE_TO_BE_RESTARTED+=" $SERVICE"
fi
done
Expand Down

0 comments on commit 7860560

Please sign in to comment.