Skip to content
Myr

Fixed "express" executable due to node 0.1.90 changes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 7b83a52 · Browse files · 1 file+5 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−6 removed

  • other:+5 added−6 removed

1 file+5 added−6 removed

modified:bin/express+5 added-6 removed
20 unmodified lines
21// Helpers2223function confirm(msg, fn) {24 sys.print(msg)25 process.stdio.open()26 process.stdio.addListener('data', function(chunk){25 var stdin = process.openStdin()26 stdin.setEncoding('utf8')27 stdin.addListener('data', function(chunk){28 switch (chunk.trim().toLowerCase()) {29 case 'yes':30 case 'y':30 return process.stdio.close(),31 fn(true)31 return stdin.destroy(), fn(true)32 case 'no':33 case 'n':34 return process.stdio.close(),35 fn(false)34 return stdin.destroy(), fn(false)35 default:36 sys.print(msg)37 }38 })
24 unmodified lines