Skip to content

Commit

Permalink
fixing incorrectly-rooted relative paths in bin/cake and bin/coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Mar 16, 2010
1 parent 04c5aed commit 12d8d70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions bin/cake
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env node

require('./../lib/helpers').helpers.extend(global, require('sys'));

var path = require('path');
var fs = require('fs');
var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');

require('./../lib/cake').run();
require(lib + '/helpers').helpers.extend(global, require('sys'));
require(lib + '/cake').run();
5 changes: 2 additions & 3 deletions bin/coffee
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env node

require('./../lib/helpers').helpers.extend(global, require('sys'));

var path = require('path');
var fs = require('fs');
var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');

require('./../lib/command').run();
require(lib + '/helpers').helpers.extend(global, require('sys'));
require(lib + '/command').run();

0 comments on commit 12d8d70

Please sign in to comment.