X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=probelist.sh;h=6e6eca27238476fa59ae95a1eef0d667ed043502;hb=3056f5ff787d9215e4fa25817faed2be8ed89c23;hp=28a4eb50826baca97ca5dfa3c7f6f74033259c3f;hpb=c3f0a24f899fb68bb9ff796386263cced18d47ab;p=sgmon.git diff --git a/probelist.sh b/probelist.sh index 28a4eb5..6e6eca2 100755 --- a/probelist.sh +++ b/probelist.sh @@ -1,6 +1,9 @@ #!/bin/sh -e -find . -mindepth 1 -type d -not -name ".*" | while read probe ; do - [ -e $probe/run ] || continue - echo ${probe#./} -done | sort +nondot() { + find $1 -mindepth 1 -maxdepth 1 -type d -not -name ".*" | while read d ; do + [ -e $d/run ] && echo ${d#./} || nondot $d + done +} + +nondot . | sort