Skip to content

Commit

Permalink
Fix Shebang Error
Browse files Browse the repository at this point in the history
The previous shebang "/usr/bin/node" would throw error if user
has NOT installed Node.js on at the path. Using "/usr/bin/env"
would allow finding Node.js wherever it is installed.

The file is also renamed and made executable for easier invocations
from inside the modules directory. For example, to invoke the
script from  a project having installed the module would simply run
"./node_modules/tableify/bin/tableify"
  • Loading branch information
GochoMugo committed Dec 18, 2014
1 parent 00b8456 commit 6a00199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# don't check in installed node_modules
node_modules/
2 changes: 1 addition & 1 deletion bin/tableify.js → bin/tableify
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/node
#!/usr/bin/env node

var tableify = require('../');
var argv = require('optimist').argv;
Expand Down

0 comments on commit 6a00199

Please sign in to comment.