diff options
-rw-r--r-- | catalyst/support.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/catalyst/support.py b/catalyst/support.py index f2ae5bb6..60cdaf62 100644 --- a/catalyst/support.py +++ b/catalyst/support.py @@ -219,6 +219,10 @@ def addl_arg_parse(myspec,addlargs,requiredspec,validspec): def countdown(secs=5, doing="Starting"): + # If this is non-interactive (e.g. a cronjob), then sleeping is pointless. + if not os.isatty(sys.stdin.fileno()): + return + if secs: sys.stdout.write( ('>>> Waiting %s seconds before starting...\n' |