summaryrefslogtreecommitdiffstats
path: root/clean
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-06-11 17:09:43 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-06-11 17:09:43 +0200
commit7d03636e06c8c10f7bd313a28bb09836299d9d1c (patch)
tree7519e3784506054d6532e92b1b57c9b2cced67e6 /clean
parent862635a269550fe74c6a007aa0d92b930b5ef260 (diff)
downloadbin-7d03636e06c8c10f7bd313a28bb09836299d9d1c.zip
bin-7d03636e06c8c10f7bd313a28bb09836299d9d1c.tar.gz
improve clean to search and destroy osx craps
Diffstat (limited to 'clean')
-rwxr-xr-xclean4
1 files changed, 2 insertions, 2 deletions
diff --git a/clean b/clean
index 5680003..88f2aef 100755
--- a/clean
+++ b/clean
@@ -1,4 +1,4 @@
#! /bin/sh
DIR=${1:-$HOME}
-echo "find $DIR -name '*~' -exec rm '{}' \;"
-find $DIR -name '*~' -exec rm '{}' \;
+echo "find $DIR \( -name '*~' -o -name '__MACOSX' -o -name .DS_Store \) -exec rm -fr '{}' \;"
+find $DIR \( -name '*~' -o -name '__MACOSX' -o -name .DS_Store \) -exec rm -fr '{}' \;