Skip to content
Snippets Groups Projects
Verified Commit cc8b431d authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

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.
parent 4c294eb1
Branches
Tags
No related merge requests found
...@@ -17,7 +17,7 @@ fi ...@@ -17,7 +17,7 @@ fi
# Using systemd-resolved when available # Using systemd-resolved when available
PODMAN_NETWORK_SETTINGS="" 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" PODMAN_NETWORK_SETTINGS="--network host --dns 127.0.0.53"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment