rm -f "${LOCKFILE}"
}
-
# Don't start again if the script is already running
# or if an other build script is running
if is_locked || pgrep make.sh >/dev/null; then
build "$(dirname ${repo})"
done
+# Try to sync even nothing was built for retrying failed uploads
+sync
+
exit 0