Skip to content

Commit

Permalink
Exit with ExitCode.NOOP if no files have been processed due to --acti…
Browse files Browse the repository at this point in the history
…on TEST
  • Loading branch information
rednoah committed Jun 9, 2022
1 parent afc8a85 commit 5be57f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amc.groovy
Expand Up @@ -21,7 +21,7 @@ unsorted = tryQuietly{ unsorted.toBoolean() && !testRun }
music = tryQuietly{ music.toBoolean() }
subtitles = tryQuietly{ subtitles.split(/\W+/) as List }
artwork = tryQuietly{ artwork.toBoolean() && !testRun }
clean = tryQuietly{ clean.toBoolean() }
clean = tryQuietly{ clean.toBoolean() && !testRun }
exec = tryQuietly{ exec.toString() }

// array of kodi/plex/emby hosts
Expand Down Expand Up @@ -656,7 +656,7 @@ if (deleteAfterExtract) {

// abort and skip clean-up logic if we didn't process any files
if (destinationFiles.size() == 0) {
die "Finished without processing any files"
die "Finished without processing any files", !testRun ? ExitCode.FAILURE : ExitCode.NOOP
}


Expand Down

0 comments on commit 5be57f9

Please sign in to comment.