summaryrefslogtreecommitdiff
path: root/status.sh
diff options
context:
space:
mode:
authorGuillermo Ramos2021-01-08 13:18:23 +0100
committerGuillermo Ramos2021-01-08 13:18:23 +0100
commit56bd0500e9d4aa96823b7152f631fbbc95f52c4a (patch)
tree9ad4bf092343827f10a2b65231477f7af6935906 /status.sh
parent611f5c069ec67fdb032e9b7d77502d96368dc4a1 (diff)
downloads6-services-56bd0500e9d4aa96823b7152f631fbbc95f52c4a.tar.gz
Fix status.sh
Diffstat (limited to 'status.sh')
-rwxr-xr-xstatus.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/status.sh b/status.sh
index 8eae367..c98d7c6 100755
--- a/status.sh
+++ b/status.sh
@@ -2,6 +2,8 @@
shopt -s nullglob
for svc in ~/s6/service/*; do
- echo -n "$(basename $svc): "
- s6-svstat $svc
+ if [ -d $svc ]; then
+ echo -n "$(basename $svc): "
+ s6-svstat $svc
+ fi
done