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

otherwise, "./update release" will epicly fail

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-05-19 23:04:37 +01:00 committed by Leah Rowe
parent 0ecb062df0
commit 8d4d063ace
1 changed files with 3 additions and 1 deletions

View File

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