Skip to content

Commit

Permalink
fix: adutodetecting file based executor type (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
exu committed Nov 22, 2021
1 parent ac1e4fc commit c50dc34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kubectl-testkube/commands/scripts/create_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ func NewCreateScriptsCmd() *cobra.Command {
d := detector.NewDefaultDetector()
if detectedType, ok := d.Detect(options); ok {
ui.Info("Detected test script type", detectedType)
executorType = detectedType
options.Type_ = detectedType
}
}

if executorType == "" {
if options.Type_ == "" {
ui.Failf("Can't detect executor type by passed file content, please pass valid --type flag")
}

Expand Down

0 comments on commit c50dc34

Please sign in to comment.