Created
December 21, 2017 04:40
-
-
Save kunishi/530e28a6b2bf943aa98e6d43571b0cb8 to your computer and use it in GitHub Desktop.
convert dmg to iso on MacOS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFS=$'\n' | |
for file in *.dmg; do | |
base=`basename $file .dmg` | |
hdiutil convert -format UDTO -o $base.cdr $file | |
mv $base.cdr $base.iso | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment