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>
This commit is contained in:
Leah Rowe
2025-10-17 21:01:31 +01:00
parent b840cf3a83
commit e2a97455cc

View File

@@ -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()