mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 23:08:49 +02:00
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:
+1
-10
@@ -89,16 +89,7 @@ git_prep()
|
|||||||
x_ xbmkdir "${_loc%/*}"
|
x_ xbmkdir "${_loc%/*}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$_loc" ]; then
|
x_ mv "$tmpgit" "$_loc"
|
||||||
# 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()
|
||||||
|
|||||||
Reference in New Issue
Block a user