1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* make watcher work in console-interactive mode as well as without console

This commit is contained in:
Reinhard Pointner 2013-03-22 03:15:48 +00:00
parent 5abb244218
commit e7e2b293d3

View File

@ -19,4 +19,4 @@ watchman.commitDelay = 5 * 1000 // default = 5s
watchman.commitPerFolder = true // default = true
println "Waiting for events"
console.readLine() // keep running and watch for changes
if (console) { console.readLine() } else { sleep(Long.MAX_VALUE) } // keep running and watch for changes