2021-05-04 21:07:42 +00:00
|
|
|
diff --git a/tool/tsh/tsh.go b/tool/tsh/tsh.go
|
2024-01-13 08:15:51 +00:00
|
|
|
index f73b0a4e46..6848286781 100644
|
2021-05-04 21:07:42 +00:00
|
|
|
--- a/tool/tsh/tsh.go
|
|
|
|
+++ b/tool/tsh/tsh.go
|
2024-01-13 08:15:51 +00:00
|
|
|
@@ -1065,10 +1065,11 @@ func Run(ctx context.Context, args []string, opts ...cliOption) error {
|
|
|
|
|
|
|
|
var err error
|
2021-05-04 21:07:42 +00:00
|
|
|
|
|
|
|
- cf.executablePath, err = os.Executable()
|
|
|
|
+ tempBinaryPath, err := os.Executable()
|
|
|
|
if err != nil {
|
|
|
|
return trace.Wrap(err)
|
|
|
|
}
|
|
|
|
+ cf.executablePath = path.Dir(tempBinaryPath) + "/tsh"
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
// configs
|
|
|
|
setEnvFlags(&cf)
|