diff --git a/lib/mrsk/cli/build.rb b/lib/mrsk/cli/build.rb index a1261fe3..a46e03f4 100644 --- a/lib/mrsk/cli/build.rb +++ b/lib/mrsk/cli/build.rb @@ -17,13 +17,13 @@ class Mrsk::Cli::Build < Mrsk::Cli::Base verify_local_dependencies run_hook "pre-build" + if (uncommitted_changes = Mrsk::Utils.uncommitted_changes).present? + say "The following paths have uncommitted changes (check your .gitignore file):\n #{uncommitted_changes}", :yellow + end + run_locally do begin MRSK.with_verbosity(:debug) do - if (uncommitted_changes = Mrsk::Utils.uncommitted_changes).present? - say "The following paths have uncommitted changes (check your .gitignore file):\n #{uncommitted_changes}", :yellow - end - execute *MRSK.builder.push end rescue SSHKit::Command::Failed => e