Fix yesterday's bone-headed commit. again
This commit is contained in:
parent
9b0b82c00b
commit
2674981d0b
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,6 @@ class Middleman::Extensions::ExternalPipeline < ::Middleman::Extension
|
|||
def ready
|
||||
logger.info "== Executing: `#{options[:command]}`"
|
||||
|
||||
@watcher.poll_once!
|
||||
|
||||
if app.build?
|
||||
watch_command!
|
||||
else
|
||||
|
@ -35,6 +33,8 @@ class Middleman::Extensions::ExternalPipeline < ::Middleman::Extension
|
|||
logger.info "== External: #{without_newline}" if without_newline.length > 0
|
||||
end
|
||||
end
|
||||
|
||||
@watcher.poll_once!
|
||||
rescue ::Errno::ENOENT => e
|
||||
logger.error "== External: Command failed with message: #{e.message}"
|
||||
exit(1)
|
||||
|
|
Loading…
Reference in a new issue