about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/teleport/tsh_14.patch
blob: 6344a3915717d516d37c70b8450e70a820808709 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/tool/tsh/common/tsh.go b/tool/tsh/common/tsh.go
index 5de21c69d0..3995c19e3c 100644
--- a/tool/tsh/common/tsh.go
+++ b/tool/tsh/common/tsh.go
@@ -1084,10 +1084,11 @@ func Run(ctx context.Context, args []string, opts ...CliOption) error {
 
 	var err error
 
-	cf.executablePath, err = os.Executable()
+	tempBinaryPath, err := os.Executable()
 	if err != nil {
 		return trace.Wrap(err)
 	}
+	cf.executablePath = path.Dir(tempBinaryPath) + "/tsh"
 
 	// configs
 	setEnvFlags(&cf)