We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71d984c commit fad7c43Copy full SHA for fad7c43
polybar-scripts/isrunning-service/isrunning-service.sh
@@ -1,9 +1,10 @@
1
#!/bin/sh
2
+# shellcheck disable=SC2034
3
4
UNIT="docker.service"
5
-journalctl --follow -o cat --unit $UNIT | while read -r; do
6
- if [ "$(systemctl is-active "$UNIT")" = "active" ]; then
+journalctl --follow -o cat --unit $UNIT | while read -r line; do
7
+ if [ "$(systemctl is-active "$UNIT")" = "active" ]; then
8
echo "#1"
9
else
10
echo "#2"
0 commit comments