Permalink
Browse files

Fix #49: Backaward compatibility

path#existsSync already solved.  tty#setRawMode -> stdin#setRawMode
Thanks @blakmatrix.
  • Loading branch information...
1 parent 5ba0d05 commit 1a79226527622e57eedb1779afb7b642222a06cc @alejandro alejandro committed Jul 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/user.js
View
@@ -15,13 +15,14 @@ var fs = require('fs')
, config = require('./config')
, log = require('./log')
, exists = fs.existsSync || path.existsSync
- , tty
+ , tty = {}
;
try {
tty = require('tty');
} catch (e) {}
+tty.setRawMode = process.stdin.setRawMode || tty.setRawMode ;
var info = {
email: '',

0 comments on commit 1a79226

Please sign in to comment.