-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpushbot_v2
More file actions
25 lines (25 loc) · 1.29 KB
/
pushbot_v2
File metadata and controls
25 lines (25 loc) · 1.29 KB
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
find . -type f -name ".*" -print -exec rm -rf {} \; && \
find . -type d -name ".*" -print -exec rm -rf .[!.]* {} \; && \
find . -name ".vscode" -type d -print -exec rm -rf {} \; && \
find . -type f -name "1" -print -exec rm -rf {} \; && \
find . -type f -name "*.swp" -print -exec rm -rf {} \; && \
find . -type f -name "a.out" -print -exec rm -ri {} \; && \
find . -type f -name ".DS.Store" -print -exec rm -ri {} \; && \
find . -type f -exec xattr -c {} \; && \
find . -type d -exec xattr -c {} \; && \
find . -type f -name "*.c" -exec norminette -R CheckForbiddenSourceHeader {} \; && \
find . -type f -exec xattr -c {} \; && \
find . -type d -exec xattr -c {} \; && \
find . -type f -name "*.log" -print -exec rm -rf {} \; && \
find . -name "*.c" -type f -exec sh -c 'grep -q "#include" {} && echo -e "\033[1;31m Kütüphane Tanımslı !: {}\033[0m"' \; && \
find . -name "*.c" -type f -exec sh -c 'grep -q "int main" {} && echo -e "\033[1;31mMain Dosyası Var: {}\033[0m"' \; && \
echo -e "\033[1;32mPushBot V 2.1!\nDeveloped by: Serhatsal & Norkum\033[0m" && \
find . -name "pushbot*" -type f -print -exec rm -ri {} \; && \
echo -e "\033[1;33mBu script'i silmek istiyor musunuz? (y/n)\033[0m"
read cevap
if [ "$cevap" == "y" ]; then
echo "Script siliniyor..."
rm -- "$0"
else
echo "Script silinmedi."
fi