probelist.sh | 11 +++++++---- diff --git a/probelist.sh b/probelist.sh index 28a4eb50826baca97ca5dfa3c7f6f74033259c3f..6e6eca27238476fa59ae95a1eef0d667ed043502 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