summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-02 10:52:38 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-02 10:52:38 +0100
commitacb0ea202f2629c13edc278126f09b043037c8bc (patch)
tree443ef6f6c183705b48db3b08241bb2989d55fcd8 /include/lib.sh
parent15b76bc202f91156b3cc8234ffac1d3901763309 (diff)
lib.sh: Simplify rmgit()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rw-r--r--include/lib.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 87061f2b..bef2a16f 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -39,11 +39,8 @@ mksha512sum()
rmgit()
{
- (
- cd "$1" || $err "!cd gitrepo $1"
- find . -name ".git" -exec rm -Rf {} + || $err "!rm .git $1"
- find . -name ".gitmodules" -exec rm -Rf {} + || $err "!rm .gitmod $1"
- ) || $err "Cannot remove .git/.gitmodules in $1"
+ x_ find "$1" -name ".git" -exec rm -Rf {} +
+ x_ find "$1" -name ".gitmodules" -exec rm -Rf {} +
}
# can grab from the internet, or copy locally.