2014-02-03 02:08:21 +01:00
|
|
|
#
|
|
|
|
# Deletes .DS_Store and __MACOSX directories.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2017-07-07 01:01:26 +02:00
|
|
|
# function osx-rm-dir-metadata {
|
|
|
|
|
2014-02-03 02:08:21 +01:00
|
|
|
find "${@:-$PWD}" \( \
|
|
|
|
-type f -name '.DS_Store' -o \
|
|
|
|
-type d -name '__MACOSX' \
|
|
|
|
\) -print0 | xargs -0 rm -rf
|
2017-07-07 01:01:26 +02:00
|
|
|
|
|
|
|
# }
|