bypass dry_run
if the command is run_always
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
c7832b8d05
commit
3d0f3b2096
@ -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:?}"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user