Fix yesterday's bone-headed commit. again

This commit is contained in:
Thomas Reynolds 2015-12-09 17:08:58 -08:00
parent 9b0b82c00b
commit 2674981d0b

View file

@ -19,8 +19,6 @@ class Middleman::Extensions::ExternalPipeline < ::Middleman::Extension
def ready def ready
logger.info "== Executing: `#{options[:command]}`" logger.info "== Executing: `#{options[:command]}`"
@watcher.poll_once!
if app.build? if app.build?
watch_command! watch_command!
else else
@ -35,6 +33,8 @@ class Middleman::Extensions::ExternalPipeline < ::Middleman::Extension
logger.info "== External: #{without_newline}" if without_newline.length > 0 logger.info "== External: #{without_newline}" if without_newline.length > 0
end end
end end
@watcher.poll_once!
rescue ::Errno::ENOENT => e rescue ::Errno::ENOENT => e
logger.error "== External: Command failed with message: #{e.message}" logger.error "== External: Command failed with message: #{e.message}"
exit(1) exit(1)