Skip to content

Commit

Permalink
Merge pull request #1577 from camilamacedo86/cmd-int
Browse files Browse the repository at this point in the history
Check if has Scaffold before exec
  • Loading branch information
k8s-ci-robot committed Jun 29, 2020
2 parents 0cdba0b + e850679 commit c98b246
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/cmdutil/cmdutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ func Run(options RunOptions) error {
return err
}
// Step 3: scaffold
if err := scaffolder.Scaffold(); err != nil {
return err
if scaffolder != nil {
if err := scaffolder.Scaffold(); err != nil {
return err
}
}

// Step 4: finish
if err := options.PostScaffold(); err != nil {
return err
Expand Down

0 comments on commit c98b246

Please sign in to comment.