Skip to content

Commit

Permalink
fix: mise trust doesn't handle relative paths (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
roele authored May 6, 2024
1 parent 6c557cf commit 4e8c2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/trust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,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(())
}
Expand All @@ -79,8 +79,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(())
}
Expand Down

0 comments on commit 4e8c2fc

Please sign in to comment.