From 43a00a781ce9a052101bbc3f02141f6ac9e598e7 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Sat, 8 Feb 2025 15:24:34 -0500 Subject: nixos/github-mirror: fix existing repo detection --- modules/nixos/services/github-mirror/update-mirror.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/nixos/services/github-mirror') diff --git a/modules/nixos/services/github-mirror/update-mirror.sh b/modules/nixos/services/github-mirror/update-mirror.sh index c1e392d..88ff6eb 100755 --- a/modules/nixos/services/github-mirror/update-mirror.sh +++ b/modules/nixos/services/github-mirror/update-mirror.sh @@ -63,7 +63,7 @@ for user in "${users[@]}"; do curl --fail --location --show-error --silent "$url" | jq --raw-output '.[].name' | while read -r repo; do repo_path="$user"/"$repo" - if [ -d "$repo_path"/.git ]; then + if [ -d "$repo_path" ]; then pushd "$repo_path" &>/dev/null echo "Pulling $repo_path..." if ! git remote update --prune &>/dev/null; then -- cgit v1.2.3