diff options
author | Leah Rowe <leah@libreboot.org> | 2025-10-17 22:32:35 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-10-17 22:32:35 +0100 |
commit | f632b8aed7cff03f513c750f4a8ec515ed3fbba6 (patch) | |
tree | fcbe90c33d523c7b2bf1ab607d54be6919c02a02 /include/get.sh | |
parent | e2a97455cc25921dcb9f5e3a4bf06cdfb3e34b49 (diff) |
Revert "get.sh: remove a redundant check"
This reverts commit e2a97455cc25921dcb9f5e3a4bf06cdfb3e34b49.
Diffstat (limited to 'include/get.sh')
-rw-r--r-- | include/get.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/get.sh b/include/get.sh index 0b0c7f71..959bdd6e 100644 --- a/include/get.sh +++ b/include/get.sh @@ -89,7 +89,16 @@ git_prep() x_ xbmkdir "${_loc%/*}" 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() |