diff options
author | Leah Rowe <leah@libreboot.org> | 2025-10-17 21:01:31 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-10-17 21:01:31 +0100 |
commit | e2a97455cc25921dcb9f5e3a4bf06cdfb3e34b49 (patch) | |
tree | f6a5b06380361d166e4cbd576de5c4e9325b3d1a | |
parent | b840cf3a832de815a87d9d10b698eec97aceb342 (diff) |
get.sh: remove a redundant check
loc is never empty.
if it is, it's a bug. don't hide bugs.
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | include/get.sh | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/include/get.sh b/include/get.sh index 959bdd6e..0b0c7f71 100644 --- a/include/get.sh +++ b/include/get.sh @@ -89,16 +89,7 @@ git_prep() x_ xbmkdir "${_loc%/*}" fi - 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 + x_ mv "$tmpgit" "$_loc" } fetch_submodule() |