-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix mktemp usage for OS X #344
Conversation
I've reverted this as it breaks mktemp on Linux. Please find and test a solution which works on both OSX and Linux, or make the script check for which platform is in use. I don't know what problem this was supposed to fix. |
It was my understanding that the mktemp -t option is supported under Linux. I guess it's only supported under some flavours of Linux :/ How does it fail for you - what is the error? I see that on some mktemps the -t option must take a specifically-formatted string with a number of X in it (ie. ensaveXXXXX). Is that the case for you? The problem this is solving is that the mktemp command does not work on OS X. |
Yes, the If you fix this to work on both Linux and OSX, I will gladly merge it. :) |
Unfortunately the mktemp version on OS X requires a template. Hilariously On Fri, 27 Mar 2015 at 08:53 Ryan Pessa notifications@github.com wrote:
|
on linux you need |
I don't know a ton about OSX, but from what I understand it's not horribly uncommon for OSX to have standard commands which work different from their Linux counterparts. Apparently they take that "Think Differently" very seriously. :P Feel free to add an OS check (maybe via
But only if you can't specify the XXXXXX part on OSX. Though I'd think that the worst case scenario would be that the filename would end up being |
This fixes the invocation of mktemp so it works on OS X also.