Skip to content

exit <code> not working correctly anymore #251

@antonmarin

Description

@antonmarin

Status broken or misbehavior with docs:

Alternatively, you can inform a sequence of tests as status. If no error is returned (exit status 0), the task is considered up-to-date:

  • Task version 2.6.0
  • OS macOS High Sierra
  • Example Taskfile showing the issue
 asd: cmds: - echo test status: - exit 0 

result

▶ task asd --status -v task: dynamic variable: 'uname | tr '[:upper:]' '[:lower:]'' result: 'darwin' task: dynamic variable: 'echo "development"' result: 'development' task: status command exit 0 exited non-zero: exit status 0 task: Task "asd" is not up-to-date ▶ task asd -v task: dynamic variable: 'uname | tr '[:upper:]' '[:lower:]'' result: 'darwin' task: dynamic variable: 'echo "development"' result: 'development' task: status command exit 0 exited non-zero: exit status 0 echo test test 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions