Skip to content

Commit

Permalink
Fix only_when_fresh adding
Browse files Browse the repository at this point in the history
  • Loading branch information
markcda committed Dec 17, 2024
1 parent 238891d commit e688186
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/entities/custom_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ impl CustomCommand {
let ignore_fails = inquire::Confirm::new("Ignore command failures?").with_default(false).prompt()?;
let show_bash_c = inquire::Confirm::new("Show an entire command at build stage?").with_default(true).prompt()?;
let show_success_output = inquire::Confirm::new("Show an output of command if it executed successfully?").with_default(false).prompt()?;
let only_when_fresh = if inquire::Confirm::new("Start a command only in fresh builds?").with_default(false).prompt()? {
Some(true)
} else {
None
};
let only_when_fresh = Some(inquire::Confirm::new("Start a command only in fresh builds?").with_default(false).prompt()?);

Ok(CustomCommand {
bash_c,
Expand Down

0 comments on commit e688186

Please sign in to comment.