From 7535467f458fe41b26c19890ccb529c726f02c10 Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Mon, 13 May 2024 13:37:58 +0000 Subject: [PATCH] fix: prompt check shouldn't run if dry flag is true --- task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task.go b/task.go index bcd4bac5..4ec598be 100644 --- a/task.go +++ b/task.go @@ -228,7 +228,7 @@ func (e *Executor) RunTask(ctx context.Context, call *ast.Call) error { } } - if t.Prompt != "" { + if t.Prompt != "" && !e.Dry { if err := e.Logger.Prompt(logger.Yellow, t.Prompt, "n", "y", "yes"); errors.Is(err, logger.ErrNoTerminal) { return &errors.TaskCancelledNoTerminalError{TaskName: call.Task} } else if errors.Is(err, logger.ErrPromptCancelled) {