OSX: avoid ._-files being created in tar archives
Well known
tar cfz file.tar.gz sources...
may create strange .-files, i.e. OSX resource files, inside the archive. To avoid this, set the following env in .bashprofile
export COPYFILE_DISABLE=1
If this doesn't work, try to find out the correct name, as it differs in some versions of osx tar
strings /usr/bin/tar|grep DISABLE
Written by Karsten Silkenbäumer
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#