Skip to content

Commit

Permalink
Fix issue where setup:static-content:deploy exceptions are ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhansen committed Nov 15, 2016
1 parent dbc9f0e commit 205b530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/magento2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def cache_hosts
module Setup
def static_content_deploy params
output = capture :magento,
"setup:static-content:deploy #{params} | stdbuf -o0 tr -d .",
"setup:static-content:deploy #{params} | stdbuf -o0 tr -d .; test ${PIPESTATUS[0]} -eq 0",
verbosity: Logger::INFO

if not output.to_s.include? 'New version of deployed files'
Expand Down

0 comments on commit 205b530

Please sign in to comment.