File tree 1 file changed +6
-3
lines changed
arduino/cores/packagemanager
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -47,25 +47,28 @@ func (pm *PackageManager) InstallPlatform(platformRelease *cores.PlatformRelease
47
47
}
48
48
49
49
func (pm * PackageManager ) runPostInstallScript (destDir * paths.Path ) error {
50
+ absDestDir , err := destDir .Abs ()
51
+ if err != nil {
52
+ return err
53
+ }
50
54
postInstallFilename := "post_install.sh"
51
55
if runtime .GOOS == "windows" {
52
56
postInstallFilename = "post_install.bat"
53
57
}
54
- postInstall := destDir .Join (postInstallFilename )
58
+ postInstall := absDestDir .Join (postInstallFilename )
55
59
if postInstall .Exist () && postInstall .IsNotDir () {
56
60
cmd , err := executils .Command (postInstall .String ())
57
61
if err != nil {
58
62
return err
59
63
}
60
- cmd .Dir = destDir .String ()
64
+ cmd .Dir = absDestDir .String ()
61
65
cmd .Stdout = nil
62
66
cmd .Stderr = nil
63
67
if err := cmd .Run (); err != nil {
64
68
return err
65
69
}
66
70
}
67
71
return nil
68
-
69
72
}
70
73
71
74
// IsManagedPlatformRelease returns true if the PlatforRelease is managed by the PackageManager
You can’t perform that action at this time.
0 commit comments