Skip to content

Commit

Permalink
isrunning-service: fix shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
x70b1 committed Mar 26, 2024
1 parent 71d984c commit fad7c43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions polybar-scripts/isrunning-service/isrunning-service.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/sh
# shellcheck disable=SC2034

UNIT="docker.service"

journalctl --follow -o cat --unit $UNIT | while read -r; do
if [ "$(systemctl is-active "$UNIT")" = "active" ]; then
journalctl --follow -o cat --unit $UNIT | while read -r line; do
if [ "$(systemctl is-active "$UNIT")" = "active" ]; then
echo "#1"
else
echo "#2"
Expand Down

0 comments on commit fad7c43

Please sign in to comment.