diff options
| author | onur-ozkan <work@onurozkan.dev> | 2024-08-18 11:40:03 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2024-08-18 11:40:03 +0300 |
| commit | 3d0f3b209622ebbc2e4e568fa88a9c8905fcb301 (patch) | |
| tree | b26624c02bdba2a7b3a1c0c8ccd00ab1ba01e8dc | |
| parent | c7832b8d05d50478836532688ac90eb1d1ad9f23 (diff) | |
| download | rust-3d0f3b209622ebbc2e4e568fa88a9c8905fcb301.tar.gz rust-3d0f3b209622ebbc2e4e568fa88a9c8905fcb301.zip | |
bypass `dry_run` if the command is `run_always`
Signed-off-by: onur-ozkan <work@onurozkan.dev>
| -rw-r--r-- | src/bootstrap/src/core/download.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/download.rs b/src/bootstrap/src/core/download.rs index ae39afa1fa2..d014239d0c5 100644 --- a/src/bootstrap/src/core/download.rs +++ b/src/bootstrap/src/core/download.rs @@ -56,7 +56,7 @@ impl Config { /// Returns false if do not execute at all, otherwise returns its /// `status.success()`. pub(crate) fn check_run(&self, cmd: &mut BootstrapCommand) -> bool { - if self.dry_run() { + if self.dry_run() && !cmd.run_always { return true; } self.verbose(|| println!("running: {cmd:?}")); |
