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=""