Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Make a .dmg from any directory' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make a .dmg from any directory
Authored by: purecanesugar on Sep 15, '03 07:00:56PM

There is one small bug in the 'mkdmg' script if you have a different 'du' installed, i.e. one from fink or somewhere else. 'du -s' does different things on different versions of 'du'. To make sure you are using the Apple 'du', change:

SIZE=`du -s "$FOLDER" | awk '{ print $1 }'`


SIZE=`/usr/bin/du -s "$FOLDER" | awk '{ print $1 }'`

[ Reply to This | # ]