Permalink
Browse files

Added path.join to avoid error in Linux machines, OS Temp path in Lin…

…ux didn't returned the / at the end
  • Loading branch information...
1 parent 5d47b2c commit 5f3568ec142e2c05c2a7458c4ef42d41220eb824 @aravindavk aravindavk committed Dec 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 index.js
View
@@ -2,8 +2,9 @@ $(function() {
var os = require("os");
var fs = require("fs");
var exec = require("exec");
+ var path = require('path');
- var tmpSourceFile = os.tmpDir() + "kalam.txt";
+ var tmpSourceFile = path.join(os.tmpDir(), "kalam.txt");
function render() {

0 comments on commit 5f3568e

Please sign in to comment.