From 782371a59cf2e2a6c9a20ffbaa07f2724c1d1b70 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 20 Oct 2023 09:25:52 +0100 Subject: update/release: delete *all* .git and .gitmodules do it using find -exec this is more robust, and it will never need to be maintained over time (famous last words). this is done because now we download submodules for all git projects, so it's hard to predict. Signed-off-by: Leah Rowe --- script/update/release | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'script/update/release') diff --git a/script/update/release b/script/update/release index 8861dd0a..67ec8bec 100755 --- a/script/update/release +++ b/script/update/release @@ -91,9 +91,10 @@ fetch_trees() xp="${x#*/}"; xp="${xp%/*}" [ -L "${xp}" ] || x_ rm -Rf "src/${xp}/${xp}" done - rm -Rf */.git* */*/.git* */*/*/.git* */*/*/*/.git* */*/*/*/*/.git* \ - */*/*/*/*/*/.git* */*/*/*/*/*/*/.git* */*/*/*/*/*/*/*/.git* \ - */*/*/*/*/*/*/*/*/.git* .git tmp || err "${_xm}: rm-dotgit" + + find . -name ".git" -exec rm -Rf {} + || err "${_xm}: rm .git" + find . -name ".gitmodules" -exec rm -Rf {} + || err "${_xm}: rm .gitmod" + x_ rm -Rf tmp } mkrom_images() -- cgit v1.2.1