Open aburks opened 9 years ago
This script is awesome, by the way: thanks for publishing it!
discovered this today too
a perhaps-more-concise fix suggested by http://stackoverflow.com/questions/31396985/why-is-mktemp-on-os-x-broken-with-a-command-that-worked-on-linux:
TMPDIR=`mktemp -d "${TMPDIR:-/tmp}/$PROGRAM.XXXXXX"`
When creating
TMPDIR
on OS X it doesn't seem to be unique on each run of the script, especially if using the "zip" type. The fix for me was to initializeTMPDIR
as follows:This fix is safe for both Linux and OS X.