-
Notifications
You must be signed in to change notification settings - Fork 0
/
wppkey.sh
37 lines (32 loc) · 820 Bytes
/
wppkey.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
#!/usr/bin/env bash
#1.0
while getopts dbs valor; do
case "$valor" in
d) cd /sdcard/WhatsApp/Databases
if [[ -n "$(ls msg* 2>/dev/null)" ]] ; then
echo "apagado $(du -h | tail -1)"
rm msg*
else
echo "nenhum arquivo databases"
fi
;;
b) cd /sdcard/WhatsApp/Backups
if [[ -n "$(ls stickers* 2>/dev/null)" ]] ; then
echo "apagado $(du -h stickers* | tail -1)"
rm stickers*
else
echo "nenhum arquivo stickers"
fi
;;
s) cd /sdcard/WhatsApp/.Shared
if [[ -n "$(ls 2>/dev/null)" ]] ; then
echo "apagado $(du -h | tail -1)"
cd ..
rm -rf .Shared/
mkdir .Shared
else
echo "nenhum arquivo em shared"
fi
;;
esac
done