Revert "get.sh: remove a redundant check"

This reverts commit e2a97455cc.
This commit is contained in:
Leah Rowe
2025-10-17 22:32:35 +01:00
parent e2a97455cc
commit f632b8aed7
+10 -1
View File
@@ -89,7 +89,16 @@ git_prep()
x_ xbmkdir "${_loc%/*}" x_ xbmkdir "${_loc%/*}"
fi fi
x_ mv "$tmpgit" "$_loc" if [ -z "$_loc" ]; then
# we only used git_prep to update caches, on
# a multi-tree project. tmpgit is useless now.
x_ rm -Rf "$tmpgit"
else
# actual downloaded
x_ mv "$tmpgit" "$_loc"
fi
} }
fetch_submodule() fetch_submodule()