From e89919507ce38170b50667a6531f88ef284b25b1 Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:56:38 +0200 Subject: [PATCH] chore: change if condition for CURRENT_STATE to use systemctl -q flag --- build/ublue-os-just/10-update.just | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/ublue-os-just/10-update.just b/build/ublue-os-just/10-update.just index 1e9de1ef..75ea189a 100644 --- a/build/ublue-os-just/10-update.just +++ b/build/ublue-os-just/10-update.just @@ -88,9 +88,9 @@ toggle-updates ACTION="prompt": #!/usr/bin/bash source /usr/lib/ujust/ujust.sh CURRENT_STATE="Disabled" - if systemctl is-enabled ublue-update.timer 2> /dev/null | grep -q enabled; then + if systemctl -q is-enabled ublue-update.timer; then CURRENT_STATE="Enabled" - elif systemctl is-enabled rpm-ostreed-automatic.timer 2> /dev/null | grep -q enabled; then + elif systemctl -q is-enabled rpm-ostreed-automatic.timer; then CURRENT_STATE="Enabled" fi OPTION={{ ACTION }}