summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitolite-sync.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitolite-sync.in b/gitolite-sync.in
index adc67bd..21d3621 100644
--- a/gitolite-sync.in
+++ b/gitolite-sync.in
@@ -27,7 +27,7 @@ if [ ${#repository_dirs[@]} -eq 0 ]; then
exit 1
fi
-for repository_dir in "${repository_dir[@]}"; do
+for repository_dir in "${repository_dirs[@]}"; do
if [ -z "${repository_dir}" ] || [ ! -d "${repository_dir}" ]; then
>&2 printf 'cannot find "%s"\n' \
"${repository_dir}"
@@ -35,7 +35,7 @@ for repository_dir in "${repository_dir[@]}"; do
fi
done
-for repository_dir in "${repository_dir[@]}"; do
+for repository_dir in "${repository_dirs[@]}"; do
find "${repository_dir}" \
-type d \
-name '*.git' \