caarlos0 / timer

A `sleep` with progress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non zero exit code on SIGINT

antosha417 opened this issue · comments

Hey!
When I want to schedule some command to execute later I can do timer 10s && ./some_command.sh.
I think it would be nice to have the ability to cancel the execution. I would expect sending SIGINT would do it, but timer exits with zero code and some_command.sh then executes immediately.

What do you think? Does it make sense?

it does make sense yes, wanna PR it?

I would love to help I am on it. I am a nooby but I'll try my best :)