Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

as_logged_user: Call node interpreter for running runner.js

  • Loading branch information...
commit f1ff046457568014c6205cc370e4ebb0689ddbe4 1 parent eb8fd79
@tomas tomas authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/system/index.js
View
6 lib/system/index.js
@@ -83,6 +83,12 @@ var as_logged_user = function(type, bin, args, callback){
} else {
runner = join(__dirname, '..', 'utils', 'runner.js');
command = [user, bin].concat(args);
+
+ var node_bin = join(system.paths.package, 'bin', 'node');
+ if (fs.existsSync(node_bin)) {
+ command = [runner].concat(command);
+ runner = node_bin;
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.