From ea941f33f9c9f1d8680e20990ae2fe6204fa9404 Mon Sep 17 00:00:00 2001 From: Igor Alexandrov Date: Fri, 21 Jul 2023 22:45:23 +0400 Subject: [PATCH] Moved uncommitted changes message out of run_locally block --- lib/mrsk/cli/build.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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