Print shell name in path setup warning

This commit is contained in:
Robbert van der Helm
2020-07-16 23:00:10 +02:00
parent 1df581cc55
commit 13214ca3a6
+6 -2
View File
@@ -87,8 +87,12 @@ pub fn verify_path_setup() -> Result<(), String> {
Ok(_) => Err(shell.to_string()),
Err(err) => {
eprintln!(
"\nWarning: could not run login shell, skipping PATH setup check: {}",
err
"\n{}",
wrap(&format!(
"Warning: could not run {} as a login shell, skipping PATH setup check: \
{}",
shell.bright_white(), err
))
);
Ok(())
}