mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
fix: remote prompt (#1487)
This commit is contained in:
@@ -238,7 +238,7 @@ func readTaskfile(
|
||||
// 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 := l.Prompt(logger.Yellow, prompt, "n", "y", "yes"); err != nil {
|
||||
return nil, &errors.TaskfileNotTrustedError{URI: node.Location()}
|
||||
}
|
||||
|
Reference in New Issue
Block a user