Skip to content

Commit

Permalink
Always uninstall after trying to link it
Browse files Browse the repository at this point in the history
Because otherwise it will fail due to existance of old files
  • Loading branch information
tiziodcaio committed Jan 22, 2024
1 parent bac0813 commit ee4d1ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions native/src/components/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,7 @@ impl Runtime {
let dirs = ProjectDirs::new()?;
let mut storage = Storage::load(&dirs)?;

if !storage.config.use_linked_runtime {
self.uninstall()?;
}
self.uninstall()?;

storage.config.use_linked_runtime = true;
storage.write(&dirs)?;
Expand Down

0 comments on commit ee4d1ac

Please sign in to comment.