From f460caf0ec122131564e4754ab1f1cbaa120f598 Mon Sep 17 00:00:00 2001 From: Roland Schaer Date: Tue, 7 May 2024 00:46:52 +0200 Subject: [PATCH] fix: mise trust doesn't handle relative paths --- src/cli/trust.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/trust.rs b/src/cli/trust.rs index 48795ae17..f501d781c 100644 --- a/src/cli/trust.rs +++ b/src/cli/trust.rs @@ -52,8 +52,8 @@ impl Trust { None => bail!("No trusted config files found."), }, }; - config_file::untrust(&path)?; let path = path.canonicalize()?; + config_file::untrust(&path)?; info!("untrusted {}", path.display()); Ok(()) } @@ -65,8 +65,8 @@ impl Trust { None => bail!("No untrusted config files found."), }, }; - config_file::trust(&path)?; let path = path.canonicalize()?; + config_file::trust(&path)?; info!("trusted {}", path.display()); Ok(()) }