Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Accept process.execPath as-is #1325

Merged
merged 1 commit into from
Jan 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions lib/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,6 @@ function collectArguments(args) {
}
}

/**
* Get Runtime Info
*
* @api private
*/

function getRuntimeInfo() {
var execPath = fs.realpathSync(process.execPath); // resolve symbolic link

var runtime = execPath
.split(/[\\/]+/).pop()
.split('.').shift();

runtime = runtime === 'nodejs' ? 'node' : runtime;

return {
name: runtime,
execPath: execPath
};
}

/**
* Get binary name.
* If environment variable SASS_BINARY_NAME,
Expand Down Expand Up @@ -122,7 +101,6 @@ var sass = process.sass = {};

sass.binaryName = getBinaryName();
sass.binaryUrl = getBinaryUrl();
sass.runtime = getRuntimeInfo();

/**
* Get binary path.
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ function build(options) {
return ['--', subject, '=', process.env[subject.toUpperCase()] || ''].join('');
})).concat(options.args);

console.log(['Building:', process.sass.runtime.execPath].concat(args).join(' '));
console.log(['Building:', process.execPath].concat(args).join(' '));

var proc = spawn(process.sass.runtime.execPath, args, {
var proc = spawn(process.execPath, args, {
stdio: [0, 1, 2]
});

Expand Down