feat: only source shell snapshot if the file exists (#9197)
This commit is contained in:
parent
dc3deaa3e7
commit
bc6d9ef6fc
1 changed files with 4 additions and 0 deletions
|
|
@ -58,6 +58,10 @@ pub(crate) fn maybe_wrap_shell_lc_with_snapshot(
|
|||
return command.to_vec();
|
||||
};
|
||||
|
||||
if !snapshot.path.exists() {
|
||||
return command.to_vec();
|
||||
}
|
||||
|
||||
if command.len() < 3 {
|
||||
return command.to_vec();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue