Fix relative path lookup
This commit is contained in:
parent
95ead8ffba
commit
7b59d1770f
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ func PayloadsDir() (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var paths []string
|
var paths []string
|
||||||
for _, root := range []string{appExe, cwd} {
|
for _, root := range []string{filepath.Dir(appExe), cwd} {
|
||||||
paths = append(paths,
|
paths = append(paths,
|
||||||
filepath.Join(root),
|
filepath.Join(root),
|
||||||
filepath.Join(root, "windows-"+runtime.GOARCH),
|
filepath.Join(root, "windows-"+runtime.GOARCH),
|
||||||
|
|
Loading…
Reference in a new issue