Skip to content
Myr

fixed bin/express

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent ebba6ca · Browse files · 1 file+4 added−3 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+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:bin/express+4 added-3 removed
3 unmodified lines
4 * Module dependencies.5 */67var fs = require('fs')8 , sys = require('sys')9 , exec = require('child_process').exec;1011/**12 * Framework version.
217 unmodified lines
230 */231232function write(path, str) {233 fs.writeFile(path, str);233 sys.puts(' create : ' + path);234 console.log(' create : ' + path);235}236237/**238 * Prompt confirmation with the given `msg`.
34 unmodified lines
273274function mkdir(path, fn) {275 exec('mkdir -p ' + path, function(err){276 if (err) throw err;276 sys.puts(' create : ' + path);277 console.log(' create : ' + path);278 fn && fn();279 });280}281
3 unmodified lines
285 * @param {String} str286 */287288function abort(str) {288 sys.error(str);289 console.error(str);290 process.exit(1);291}