]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
update.php --daemon did not respect --quiet
[tt-rss.git] / update.php
index 691e168e29a0309bcc0978ca832e5c3764f17ba0..e57aef90f2eaecf81e4b2f3298a15d32a88e0594 100755 (executable)
 
        if (isset($options["daemon"])) {
                while (true) {
-                       passthru(PHP_EXECUTABLE . " " . $argv[0] ." --daemon-loop");
+                       $quiet = (isset($options["quiet"])) ? "--quiet" : "";
+
+                       passthru(PHP_EXECUTABLE . " " . $argv[0] ." --daemon-loop $quiet");
                        _debug("Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...");
                        sleep(DAEMON_SLEEP_INTERVAL);
                }