Skip to content

Commit

Permalink
Don't trigger the CoffeeScript hack when running under node_g.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Mar 28, 2011
1 parent cc53c56 commit 78ac753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var path = require('path');

// Hack to work when loaded with CoffeeScript
if (process.argv.length < 2
|| !process.argv[0].match(/(?:^|\/)node(?:-?\d+(?:\.\d+)*)?$/)) {
|| !process.argv[0].match(/(?:^|\/)node(?:_g)?(?:-?\d+(?:\.\d+)*)?$/)) {
process.argv = ['coffee', ''].concat(process.argv);
}

Expand Down

0 comments on commit 78ac753

Please sign in to comment.