Created
June 1, 2017 14:04
-
-
Save seancheung/25b70b6cd8ee06628c4b8ffd7d131ec1 to your computer and use it in GitHub Desktop.
Create iso images from folders or files on OSX
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 | |
burn() { | |
local output="$2" | |
if [ ! "$output" ];then | |
output="${1%/}.iso" | |
fi | |
hdiutil makehybrid -iso -joliet -o "$output" "$1" | |
} | |
burn "$1" "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment