Quick tip: Converting DMG to ISO
Posted on December 6th, 2008 in Bash, Code, Mac OS X |
Save this as dmg2iso and run from the terminal:
#!/bin/bash
if [ -z "${1}" ]; then
echo "Usage: ${0##*/} <file>"
exit 1
fi
FILE=${1%.dmg}
hdiutil makehybrid ${FILE}.dmg -o ${FILE}