forked from 3for/2022-entries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean.sh
executable file
·23 lines (18 loc) · 988 Bytes
/
clean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#~/bin/bash
# Open
find -D exec ./open-division -type d -name '.git' -exec rm -rf {} +
find -D exec ./open-division -type d -name '.github' -exec rm -rf {} +
find -D exec ./open-division -type d -name '.circleci' -exec rm -rf {} +
find -D exec ./open-division -type d -name '.vscode' -exec rm -rf {} +
find -D exec ./open-division -name '.gitignore' -exec rm -rf {} +
find -D exec ./open-division -name '.gitmodules' -exec rm -rf {} +
# Team
find -D exec ./team-division -type d -name '.git' -exec rm -rf {} +
find -D exec ./team-division -type d -name '.github' -exec rm -rf {} +
find -D exec ./team-division -type d -name '.circleci' -exec rm -rf {} +
find -D exec ./team-division -type d -name '.vscode' -exec rm -rf {} +
find -D exec ./team-division -name '.gitignore' -exec rm -rf {} +
find -D exec ./team-division -name '.gitmodules' -exec rm -rf {} +
# Visual check for external deps in Cargo
echo 'External dependencies found in Cargo.toml files:'
grep -rnw './' -e 'git = '