Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# import a directory into a case-sensitive DMG
dir="/Users/afowler/src/stuff"
hdiutil create -srcfolder "${dir}" -autostretch -fs JHFS+X temp.dmg
hdiutil attach -mountpoint "${dir}-caseSensitive" temp.dmg
# JHFS+X == journalled, case-sensitive.
# DMG is initially the directory size, but can grow as needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.