File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
crates/q_cli/src/cli/internal Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ use fig_proto::util::get_shell;
6262use fig_util:: directories:: {
6363 figterm_socket_path,
6464 logs_dir,
65+ update_lock_path,
6566} ;
6667use fig_util:: env_var:: QTERM_SESSION_ID ;
6768use fig_util:: {
@@ -253,6 +254,8 @@ pub enum InternalSubcommand {
253254 DumpState {
254255 component : StateComponent ,
255256 } ,
257+ /// Currently only used by macOS after finishing an update. The old binary calls `FinishUpdate`
258+ /// on the new binary at the end of updating.
256259 FinishUpdate {
257260 #[ arg( long) ]
258261 relaunch_dashboard : bool ,
@@ -785,6 +788,8 @@ impl InternalSubcommand {
785788 } )
786789 . ok ( ) ;
787790
791+ let _ = tokio:: fs:: remove_file ( update_lock_path ( & fig_os_shim:: Context :: new ( ) ) ?) . await ;
792+
788793 Ok ( ExitCode :: SUCCESS )
789794 } ,
790795 #[ cfg( target_os = "macos" ) ]
You can’t perform that action at this time.
0 commit comments