We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bc99ae commit 0e8a5a3Copy full SHA for 0e8a5a3
apply.go
@@ -270,7 +270,17 @@ func (o *Options) SetPublicKeyPEM(pembytes []byte) error {
270
271
func (o *Options) getPath() (string, error) {
272
if o.TargetPath == "" {
273
- return osext.Executable()
+ exe, err := osext.Executable()
274
+ if err != nil {
275
+ return "", err
276
+ }
277
+
278
+ exe, err = filepath.EvalSymlinks(exe)
279
280
281
282
283
+ return exe, nil
284
} else {
285
return o.TargetPath, nil
286
}
0 commit comments