Permalink
Browse files

Bug fix for temporary directory

  • Loading branch information...
1 parent 841930a commit d506e633dc3c3fe7d2cff5d5f5bdeb0f2d7b4d8b @mugenen mugenen committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/jsx
View
@@ -109,7 +109,7 @@ var JSX = Class.extend({
$execNodeJS: function (script, args) {
// XXX: node.js (0.6.x) doesn't suport "--" option :(
- var tmpdir = process.env.TMPDIR || "/tmp";
+ var tmpdir = process.env.TMPDIR || process.env.TMP || "/tmp";
var tmpfile = Util.format("%1/jsx.%2.%3.js", [
tmpdir, process.pid.toString(), Date.now().toString(16)
]);

0 comments on commit d506e63

Please sign in to comment.