summaryrefslogtreecommitdiff
path: root/script/update
diff options
context:
space:
mode:
Diffstat (limited to 'script/update')
-rwxr-xr-xscript/update/release7
1 files changed, 4 insertions, 3 deletions
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()