Permalink
Browse files

Merge pull request #1 from aravindavk/master

Added path.join to avoid error in Linux machines, OS Temp path in Linux didn't returned the / at the end
  • Loading branch information...
2 parents 5d47b2c + 5f3568e commit 3500e6c33d2b95eab67c48a0d095c883fe138a80 @swaroopch 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 3500e6c

Please sign in to comment.