Skip to content

Commit

Permalink
Improve handling custom cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoConstantine committed Jul 12, 2024
1 parent 292f770 commit d4d2d09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/commands/configure/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,10 @@ func executeConfigureCommand(ctx context.Context, command string, installPath st
return fmt.Errorf("failed to execute configure command: %v", err)
}

if _, err := os.Stat(installPath); os.IsNotExist(err) {
return fmt.Errorf("configure command executed, but config file not found at %s", installPath)
if installPath != "" {
if _, err := os.Stat(installPath); os.IsNotExist(err) {
return fmt.Errorf("configure command executed, but config file not found at %s", installPath)
}
}

return nil
Expand Down

0 comments on commit d4d2d09

Please sign in to comment.