Permalink
Browse files

fix minor problem with npm path

  • Loading branch information...
1 parent 8c79375 commit fc58c8f7fdc6657dd3b507aba625590f17879bd1 @jfromaniello committed Apr 6, 2012
Showing with 6 additions and 5 deletions.
  1. +5 −4 bin/winser
  2. +1 −1 package.json
View
@@ -16,7 +16,7 @@ String.prototype.supplant = function (o) {
};
program
- .version('0.0.3')
+ .version('0.0.4')
.option('-i, --install', 'install the node application as a windows service')
.option('-r, --remove', 'remove the windows service for the node application')
.parse(process.argv);
@@ -52,9 +52,10 @@ sequence
})
.then(function(next, err, pkg){
exec("where npm", function(err, r){
- next(err, pkg, r.trim().split("\r\n").filter(function(npm){
- return npm.substring(-4) === ".cmd";
- })[0]);
+ var npmPath = r.trim().split("\r\n").filter(function(npm){
+ return npm.substr(-4) === ".cmd";
+ })[0];
+ next(err, pkg, npmPath);
});
})
.then(function(next, err, pkg, npmLocation){
View
@@ -1,6 +1,6 @@
{
"name": "winser",
- "version": "0.0.3",
+ "version": "0.0.4",
"description": "Run a node.js application as a window service using nssm.",
"keywords": ["windows", "services", "service", "daemon"],
"homepage": "https://github.com/jfromaniello/winser",

0 comments on commit fc58c8f

Please sign in to comment.