fix: 🐛 Properly delete the LLVM directory

This commit is contained in:
Sergio Gasquez 2022-12-23 15:01:07 +01:00
parent 299494e913
commit 914712d4c0

View File

@ -302,6 +302,7 @@ async fn uninstall(args: UninstallOpts) -> Result<()> {
if let Some(llvm_path) = config.llvm_path {
info!("{} Deleting Xtensa LLVM", emoji::WRENCH);
let llvm_path = llvm_path.parent().unwrap();
config.llvm_path = None;
config.save()?;
remove_dir_all(&llvm_path)