kopia lustrzana https://github.com/c9/core
workaround for tmux 2 bug
rodzic
7b7f49b136
commit
c059be9ba9
|
@ -1926,11 +1926,19 @@ module.exports = function setup(fsOptions) {
|
|||
|
||||
function run(err){
|
||||
if (err) return callback(err);
|
||||
|
||||
if (options.detach && options.output) {
|
||||
_setDefaultEnv(options);
|
||||
delete options.env.TMUX;
|
||||
|
||||
// HACK: workaround for tmux 2.2 bug:
|
||||
// tmux passes PATH to new sessions breaking rvm
|
||||
var sep = isWin ? ";" : ":";
|
||||
options.env.PATH = options.env.PATH.split(sep).filter(function(p) {
|
||||
return !/\/rvm\//.test(p);
|
||||
}).join(sep);
|
||||
// ENDHACK
|
||||
|
||||
if (options.detach && options.output) {
|
||||
|
||||
return _execFile(TMUX, args, {
|
||||
args: args,
|
||||
name: options.name,
|
||||
|
|
Ładowanie…
Reference in New Issue