Skip to content

Pressing Ctrl+C should cause an exit code >0 #2

Description

@DeflateAwning

Pressing Ctrl+C to interrupt the progress bar should cause it to exit with a failure-indicating error code. Currently, it exits with error code 0.

The problem is if you use it in an infinite while true bash loop, pressing Ctrl+C should just kill the loop, but instead it continues onto the next command because it's still waiting.

Thanks for making this tool! I love its inline mode as a drop-in replacement for sleep.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions