wilas / vbkick

Tool for building and maintaining VirtualBox VMs described as a code in a single definition file.
Other
8 stars 5 forks source link

Unable to export VM on OSX #30

Closed alanpearce closed 11 years ago

alanpearce commented 11 years ago

Yep, another one of those command incompatibility things…

mktemp: illegal option -- -
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-q] [-u] -t prefix
INFO: Signal/Error handler - cleanup before exiting...
[1]    10168 exit 1     vbkick export smart

I see that you're passing --tmpdir=. to mktemp. It looks as though -t . does the same thing in BSD's mktemp on which OSX is based.

I made the change on my local version, but obviously you'll want something that works cross-platform, and I'm not quite sure what that is yet.

alanpearce commented 11 years ago

Actually, -t doesn't do the same thing. It adds it onto $TMPDIR, so now my exported VM is hiding under /var/folders/ Perhaps TMPDIR=. mktemp -d would work better, maybe GNU mktemp supports that too. :)

wilas commented 11 years ago

TMPDIR=. mktemp -d works as well on GNU. Feel free to create a pull request :)