1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-17 14:55:09 -05:00
filebot/website/scripts/chkall.groovy
Reinhard Pointner 6d341807d4 * simplify syntax for passing in script variables
=> changed -Xa=x -Xb=y... to --def a=x b=y ...
2012-07-28 21:17:29 +00:00

10 lines
222 B
Groovy

// filebot -script fn:chkall <folder>
/*
* Check all sfv/md5/sha1 files and stop if a conflict is found
*/
args.getFiles().findAll { it.isVerification() }.each {
if (!check(file:it))
throw new Exception("*ERROR*")
}