]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-watch
watch: remove Filesys::Notify::Simple dependency
[public-inbox.git] / script / public-inbox-watch
index 645abeda971688b3849e77de4bd5cdd46960b0b2..2057066a2a9038589120d7ed424550aef44b1444 100755 (executable)
@@ -21,6 +21,7 @@ if ($watch_md) {
                $watch_md->quit if $watch_md;
                $watch_md = undef;
        };
-       alarm(1);
+       # --no-scan is only intended for testing atm, undocumented.
+       alarm(1) unless (grep(/\A--no-scan\z/, @ARGV));
        $watch_md->watch while ($watch_md);
 }