aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwatch13
1 files changed, 7 insertions, 6 deletions
diff --git a/watch b/watch
index dc14520..a0a2135 100755
--- a/watch
+++ b/watch
@@ -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