Skip to content
Permalink
Browse files

Fixed status reporting when zero or more than one action is chosen fo…

…r nikola check.
  • Loading branch information
felixfontein committed Sep 5, 2015
1 parent 5d2b740 commit f8798e581a2b04ead37be9cb10f8dbabf2961fc6
Showing with 4 additions and 3 deletions.
  1. +4 −3 nikola/plugins/command/check.py
@@ -168,12 +168,13 @@ def _execute(self, options, args):
self.logger.level = 1
else:
self.logger.level = 4
failure = False
if options['links']:
failure = self.scan_links(options['find_sources'], options['remote'])
failure |= self.scan_links(options['find_sources'], options['remote'])
if options['files']:
failure = self.scan_files()
failure |= self.scan_files()
if options['clean']:
failure = self.clean_files()
failure |= self.clean_files()
if failure:
return 1

0 comments on commit f8798e5

Please sign in to comment.
You can’t perform that action at this time.