From be91e5e9d26f4098a188c359e3a88286b4a385b2 Mon Sep 17 00:00:00 2001 From: ed_ Date: Mon, 14 Apr 2025 16:40:10 -0400 Subject: [PATCH] Update misc.sh --- scripts/helpers/misc.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/helpers/misc.sh b/scripts/helpers/misc.sh index 0af091c..31e425c 100644 --- a/scripts/helpers/misc.sh +++ b/scripts/helpers/misc.sh @@ -77,6 +77,10 @@ update_git_repo() { return fi + if [ ! -d "$path/.git" ]; then + return # Assume the user doesn't want to use git grab packages automatically. + fi + git -C "$path" fetch local latest_commit_hash=$(git -C "$path" rev-parse '@{u}') local last_built_hash=""