diff --git a/taskfile/reader.go b/taskfile/reader.go index 1c22dc71..dcfb7fdf 100644 --- a/taskfile/reader.go +++ b/taskfile/reader.go @@ -242,7 +242,7 @@ func (r *Reader) readNode(node Node) (*ast.Taskfile, error) { // If there is a cached hash, but it doesn't match the expected hash, prompt the user to continue prompt = fmt.Sprintf(taskfileChangedPrompt, node.Location()) } - if prompt == "" { + if prompt != "" { if err := r.logger.Prompt(logger.Yellow, prompt, "n", "y", "yes"); err != nil { return nil, &errors.TaskfileNotTrustedError{URI: node.Location()} }