Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions crates/q_cli/src/cli/internal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ use fig_proto::util::get_shell;
use fig_util::directories::{
figterm_socket_path,
logs_dir,
update_lock_path,
};
use fig_util::env_var::QTERM_SESSION_ID;
use fig_util::{
Expand Down Expand Up @@ -253,6 +254,8 @@ pub enum InternalSubcommand {
DumpState {
component: StateComponent,
},
/// Currently only used by macOS after finishing an update. The old binary calls `FinishUpdate`
/// on the new binary at the end of updating.
FinishUpdate {
#[arg(long)]
relaunch_dashboard: bool,
Expand Down Expand Up @@ -785,6 +788,8 @@ impl InternalSubcommand {
})
.ok();

let _ = tokio::fs::remove_file(update_lock_path(&fig_os_shim::Context::new())?).await;

Ok(ExitCode::SUCCESS)
},
#[cfg(target_os = "macos")]
Expand Down
Loading