forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#336353 from justinas/teleport-16-1-4
teleport_16: 16.0.4 -> 16.1.4
- Loading branch information
Showing
3 changed files
with
62 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 = filepath.Dir(tempBinaryPath) + "/tsh" | ||
|
||
// configs | ||
setEnvFlags(&cf) |