Skip to content

Commit

Permalink
fix: remote prompt (#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
pd93 authored Jan 27, 2024
1 parent 6682489 commit 870c07e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions taskfile/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import (

const (
taskfileUntrustedPrompt = `The task you are attempting to run depends on the remote Taskfile at %q.
--- Make sure you trust the source of this Taskfile before continuing ---
Continue?`
--- Make sure you trust the source of this Taskfile before continuing ---
Continue?`
taskfileChangedPrompt = `The Taskfile at %q has changed since you last used it!
--- Make sure you trust the source of this Taskfile before continuing ---
Continue?`
--- Make sure you trust the source of this Taskfile before continuing ---
Continue?`
)

// Read reads a Read for a given directory
Expand Down Expand Up @@ -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()}
}
Expand Down

0 comments on commit 870c07e

Please sign in to comment.