Skip to content

Commit

Permalink
Fixed status reporting when zero or more than one action is chosen fo…
Browse files Browse the repository at this point in the history
…r nikola check.
  • Loading branch information
felixfontein committed Sep 5, 2015
1 parent 5d2b740 commit f8798e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nikola/plugins/command/check.py
Expand Up @@ -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

Expand Down

0 comments on commit f8798e5

Please sign in to comment.