biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / teleport / tsh_14.patch
blob6344a3915717d516d37c70b8450e70a820808709
1 diff --git a/tool/tsh/common/tsh.go b/tool/tsh/common/tsh.go
2 index 5de21c69d0..3995c19e3c 100644
3 --- a/tool/tsh/common/tsh.go
4 +++ b/tool/tsh/common/tsh.go
5 @@ -1084,10 +1084,11 @@ func Run(ctx context.Context, args []string, opts ...CliOption) error {
7 var err error
9 - cf.executablePath, err = os.Executable()
10 + tempBinaryPath, err := os.Executable()
11 if err != nil {
12 return trace.Wrap(err)
14 + cf.executablePath = path.Dir(tempBinaryPath) + "/tsh"
16 // configs
17 setEnvFlags(&cf)