Skip to content

Commit 8ed8c69

Browse files
committed
fix: use Executable instead of Args[0]
1 parent ec546b1 commit 8ed8c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/telemetry/installer_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
func readInstaller() *string {
25-
if b, err := os.ReadFile(path.Join(path.Base(os.Args[0]), "installer")); err == nil {
25+
if b, err := os.ReadFile(path.Join(path.Base(os.Executable()), "installer")); err == nil {
2626
s := string(b)
2727
return &s
2828
}

0 commit comments

Comments
 (0)