-
Notifications
You must be signed in to change notification settings - Fork 0
/
deleteEveryThingDesnecessary.sh
37 lines (28 loc) · 955 Bytes
/
deleteEveryThingDesnecessary.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo "procurando diretorios"
# Procura todos os diretórios .env e armazena o resultado em uma variável
DIRETORIOS=$(find . -type d -name ".env")
# Percorre a lista de diretórios encontrados e exclui cada um
echo "removendo: "
for diretorio in $DIRETORIOS; do
echo "$diretorio"
rm -r "$diretorio"
done
echo "procurando diretorios"
# Procura todos os diretórios .env e armazena o resultado em uma variável
DIRETORIOS=$(find . -type d -name "__pycache__")
# Percorre a lista de diretórios encontrados e exclui cada um
echo "removendo: "
for diretorio in $DIRETORIOS; do
echo "$diretorio"
rm -r "$diretorio"
done
echo "procurando diretorios"
# Procura todos os diretórios .env e armazena o resultado em uma variável
DIRETORIOS=$(find . -type d -name ".vscode")
# Percorre a lista de diretórios encontrados e exclui cada um
echo "removendo: "
for diretorio in $DIRETORIOS; do
echo "$diretorio"
rm -r "$diretorio"
done