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