depot/third_party/nixpkgs/pkgs/servers/teleport/tsh.patch
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

17 lines
465 B
Diff

diff --git a/tool/tsh/tsh.go b/tool/tsh/tsh.go
index f73b0a4e46..6848286781 100644
--- a/tool/tsh/tsh.go
+++ b/tool/tsh/tsh.go
@@ -1065,10 +1065,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)