bypass dry_run if the command is run_always

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2024-08-18 11:40:03 +03:00
parent c7832b8d05
commit 3d0f3b2096

View File

@ -56,7 +56,7 @@ impl Config {
/// Returns false if do not execute at all, otherwise returns its /// Returns false if do not execute at all, otherwise returns its
/// `status.success()`. /// `status.success()`.
pub(crate) fn check_run(&self, cmd: &mut BootstrapCommand) -> bool { pub(crate) fn check_run(&self, cmd: &mut BootstrapCommand) -> bool {
if self.dry_run() { if self.dry_run() && !cmd.run_always {
return true; return true;
} }
self.verbose(|| println!("running: {cmd:?}")); self.verbose(|| println!("running: {cmd:?}"));