mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
workaround for tmux 2 bug
This commit is contained in:
parent
7b7f49b136
commit
c059be9ba9
12
node_modules/vfs-local/localfs.js
generated
vendored
12
node_modules/vfs-local/localfs.js
generated
vendored
@ -1926,10 +1926,18 @@ module.exports = function setup(fsOptions) {
|
||||
|
||||
function run(err){
|
||||
if (err) return callback(err);
|
||||
_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) {
|
||||
_setDefaultEnv(options);
|
||||
delete options.env.TMUX;
|
||||
|
||||
return _execFile(TMUX, args, {
|
||||
args: args,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user