Skip to content

Commit

Permalink
fixes #67 - open not working in ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
ritch committed Sep 26, 2012
1 parent 636da3b commit 1177462
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
16 changes: 1 addition & 15 deletions lib/util/open.js
@@ -1,15 +1 @@
var sh = require('shelljs')
, debug = require('debug')('open');

module.exports = function(url) {
var command = 'open';

url = url || '';

if (process.platform === 'win32') {
command = 'start';
}
command += ' ' + url;
debug(command);
sh.exec(command, {async: true});
};
module.exports = require('opener');
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -34,7 +34,8 @@
"doh": ">=0.0.4",
"step": ">=0.0.5",
"forever-monitor": "1.1.x",
"keypress": "~0.1.0"
"keypress": "~0.1.0",
"opener": "~1.3.0"
},
"devDependencies": {
"mocha": "*",
Expand Down

0 comments on commit 1177462

Please sign in to comment.