From 205b530ab9ca53fe9b4fa1418efaa115c4e26a7f Mon Sep 17 00:00:00 2001 From: Erik Hansen Date: Tue, 15 Nov 2016 07:55:12 -0600 Subject: [PATCH] Fix issue where setup:static-content:deploy exceptions are ignored Fixes #44 --- lib/capistrano/magento2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/magento2.rb b/lib/capistrano/magento2.rb index 1aa3cf7..4ce0128 100644 --- a/lib/capistrano/magento2.rb +++ b/lib/capistrano/magento2.rb @@ -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'