From 055b1583db46b07a72568e0361d8ee91ccd8abdf Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.dev>
Date: Tue, 25 Jun 2024 07:04:06 +0100
Subject: [PATCH] Find `.git` directories, not files

---
 bin/update-all-git-repos | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/update-all-git-repos b/bin/update-all-git-repos
index 8c6b0734..c72d25a3 100755
--- a/bin/update-all-git-repos
+++ b/bin/update-all-git-repos
@@ -6,7 +6,7 @@
 set -o errexit
 set -o nounset
 
-dirs=$(find ~/Code/personal ~/Code/work -mindepth 1 -maxdepth 2 -type f -name .git -not -path '*/*.old/*')
+dirs=$(find ~/Code/personal ~/Code/work -mindepth 1 -maxdepth 2 -type d -name .git -not -path '*/*.old/*')
 
 for dir in $dirs; do
   repo_path="${dir%/.git}"