Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check for mkisofs and hdiutils for Linux/Darwin
Linux requires mkisofs, and Darwin requires hdiutils
This patch adds a check for these utils
  • Loading branch information
hughdavenport committed Jul 9, 2012
1 parent 3b3be38 commit 91fe385
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ievms.sh
Expand Up @@ -87,6 +87,14 @@ check_unrar() {
hash unrar 2>&- || install_unrar
}

check_hdiutil() {
hash hdiutil 2>&- || fail "Darwin support requires hdiutil"
}

check_mkisofs() {
hash mkisofs 2>&- || fail "Linux support requires mkisofs (sudo apt-get install for Ubuntu/Debian)"
}

build_ievm() {
case $1 in
6)
Expand Down Expand Up @@ -227,6 +235,10 @@ check_system
create_home
check_virtualbox
check_unrar
case $kernel in
Darwin) check_hdiutil ;;
Linux) check_mkisofs ;;
esac

all_versions="6 7 8 9"
for ver in ${IEVMS_VERSIONS:-$all_versions}
Expand Down

0 comments on commit 91fe385

Please sign in to comment.