Skip to content

Commit fad7c43

Browse files
committed
isrunning-service: fix shellcheck
1 parent 71d984c commit fad7c43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

polybar-scripts/isrunning-service/isrunning-service.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/sh
2+
# shellcheck disable=SC2034
23

34
UNIT="docker.service"
45

5-
journalctl --follow -o cat --unit $UNIT | while read -r; do
6-
if [ "$(systemctl is-active "$UNIT")" = "active" ]; then
6+
journalctl --follow -o cat --unit $UNIT | while read -r line; do
7+
if [ "$(systemctl is-active "$UNIT")" = "active" ]; then
78
echo "#1"
89
else
910
echo "#2"

0 commit comments

Comments
 (0)