diff --git a/polybar-scripts/isrunning-service/isrunning-service.sh b/polybar-scripts/isrunning-service/isrunning-service.sh index fbab122d..c8c0a39a 100644 --- a/polybar-scripts/isrunning-service/isrunning-service.sh +++ b/polybar-scripts/isrunning-service/isrunning-service.sh @@ -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"