trap unlock EXIT
lock
-for repo in $(find ${BASEDIR} -maxdepth 3 -type d -name ".git"); do
- [ -d "${repo}" ] || continue
+for repo in ${BASEDIR}/*; do
+ [ -d "${repo}/.git" ] || continue
- build "$(dirname ${repo})"
+ echo build "${repo}"
done
# Try to sync even nothing was built for retrying failed uploads