From 8d4d063acee08c1474144b8d4fb3bc67c4512f78 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 19 May 2024 23:04:37 +0100 Subject: [PATCH] git.sh: don't delete .git if src/project/project otherwise, "./update release" will epicly fail Signed-off-by: Leah Rowe --- include/git.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/git.sh b/include/git.sh index fd1a8fd..58f280f 100755 --- a/include/git.sh +++ b/include/git.sh @@ -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"