fix(jetbrains-toolbox): fix step not dry running (#1253)
This commit is contained in:
@@ -1600,7 +1600,7 @@ pub fn run_zigup(ctx: &ExecutionContext) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn run_jetbrains_toolbox(_ctx: &ExecutionContext) -> Result<()> {
|
||||
pub fn run_jetbrains_toolbox(ctx: &ExecutionContext) -> Result<()> {
|
||||
let installation = find_jetbrains_toolbox();
|
||||
match installation {
|
||||
Err(FindError::NotFound) => {
|
||||
@@ -1623,6 +1623,11 @@ pub fn run_jetbrains_toolbox(_ctx: &ExecutionContext) -> Result<()> {
|
||||
Ok(installation) => {
|
||||
print_separator("JetBrains Toolbox");
|
||||
|
||||
if ctx.run_type().dry() {
|
||||
println!("Dry running jetbrains-toolbox-updater");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
match update_jetbrains_toolbox(installation) {
|
||||
Err(e) => {
|
||||
// Unexpected error
|
||||
|
||||
Reference in New Issue
Block a user