Skip to content

Commit 7526b22

Browse files
committed
Small fix on post-install precondition
1 parent 529dd76 commit 7526b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino/cores/packagemanager/install_uninstall.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (pm *PackageManager) runPostInstallScript(destDir *paths.Path) error {
5252
postInstallFilename = "post_install.bat"
5353
}
5454
postInstall := destDir.Join(postInstallFilename)
55-
if postInstall.Exist() && !postInstall.IsDir() {
55+
if postInstall.Exist() && postInstall.IsNotDir() {
5656
cmd, err := executils.Command(postInstall.String())
5757
if err != nil {
5858
return err

0 commit comments

Comments
 (0)