Skip to content

Commit

Permalink
fix: do not add ignore file if not tty (#3558)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx authored Dec 14, 2024
1 parent 6fa612d commit ff1c65f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/config_file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ pub fn trust_check(path: &Path) -> eyre::Result<()> {
if ans {
trust(&config_root)?;
return Ok(());
} else {
} else if console::user_attended_stderr() {
add_ignored(config_root.to_path_buf())?;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub enum Error {
#[error("{} exited with non-zero status: {}", .0, render_exit_status(.1))]
ScriptFailed(String, Option<ExitStatus>),
#[error(
"Config files in {} are not trusted.\nTrust them with `mise trust`.",
"Config files in {} are not trusted.\nTrust them with `mise trust`. See https://mise.jdx.dev/cli/trust.html for more information.",
display_path(.0)
)]
UntrustedConfig(PathBuf),
Expand Down

0 comments on commit ff1c65f

Please sign in to comment.