Fix replace actions replacing with wrong file
This commit is contained in:
parent
8618e563dc
commit
a288bf58a5
@ -359,7 +359,7 @@ fn main() -> Result<(), String> {
|
||||
if !present_file_names.iter().any(|file| *file == file_name) {
|
||||
vec![add_action] //file doesn't exist yet
|
||||
} else {
|
||||
vec![FileAction::new(&file_name, Action::Replace)
|
||||
vec![FileAction::new(file, Action::Replace)
|
||||
.expect("path points to file")]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user