git.sh: don't delete .git if src/project/project

otherwise, "./update release" will epicly fail

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe 2024-05-19 23:04:37 +01:00 committed by Leah Rowe
parent 0ecb062df0
commit 8d4d063ace

View file

@ -109,7 +109,9 @@ git_prep()
fi
fi
[ "$xbmk_release" = "y" ] && rmgit "$tmpgit"
[ "$xbmk_release" = "y" ] && [ "$_loc" != "src/$project/$project" ] \
&& rmgit "$tmpgit"
[ "$_loc" = "${_loc%/*}" ] || x_ mkdir -p "${_loc%/*}"
mv "$tmpgit" "$_loc" || $err "git_prep: !mv $tmpgit $_loc"