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 {
9 - cf.executablePath, err = os.Executable()
10 + tempBinaryPath, err := os.Executable()
12 return trace.Wrap(err)
14 + cf.executablePath = path.Dir(tempBinaryPath) + "/tsh"