On https://github.com/rackerlabs/kthresher/pull/57#issuecomment-427698307 it was found that kthresher will trigger a non-zero exit code when no action is performed. This is troublesome for timers in systemd, this commit detects if the execution of no actions is triggered without a tty and exits with 0 avoiding the non-zero exit code and printing the help.
On https://github.com/rackerlabs/kthresher/pull/57#issuecomment-427698307 it was found that
kthresher
will trigger a non-zero exit code when no action is performed. This is troublesome for timers in systemd, this commit detects if the execution of no actions is triggered without a tty and exits with0
avoiding the non-zero exit code and printing the help.-- Closes #48