diff options
-rwxr-xr-x | watch | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,11 +1,12 @@ #!/usr/bin/env bash -packages="pony" - cd ${BASH_SOURCE%/*} -for package in $packages; do - cd $package - ./watch - cd .. + +for package in *; do + [ -d $package ] && ( + cd $package + [ -f watch ] && ./watch + cd .. + ) done |