From cc8b431db8b8190572a68a30704b8c3b873c8037 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Tue, 5 Oct 2021 19:44:03 +0200
Subject: [PATCH] cli: Simplify systemctl check

using the `-q` flag has the same usefulness as the shell redirecting but
is way easier to read. Therefore, let's use that.
---
 cli/koolbox | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cli/koolbox b/cli/koolbox
index 30996e671..5c9c161e3 100755
--- a/cli/koolbox
+++ b/cli/koolbox
@@ -17,7 +17,7 @@ fi
 
 # Using systemd-resolved when available
 PODMAN_NETWORK_SETTINGS=""
-if systemctl is-active systemd-resolved.service > /dev/null 2>&1; then
+if systemctl -q is-active systemd-resolved.service; then
   PODMAN_NETWORK_SETTINGS="--network host --dns 127.0.0.53"
 fi
 
-- 
GitLab