Skip to content

Instantly share code, notes, and snippets.

@seancheung
Created June 1, 2017 14:04
Show Gist options
  • Save seancheung/25b70b6cd8ee06628c4b8ffd7d131ec1 to your computer and use it in GitHub Desktop.
Save seancheung/25b70b6cd8ee06628c4b8ffd7d131ec1 to your computer and use it in GitHub Desktop.
Create iso images from folders or files on OSX
#!/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