Skip to content

Commit

Permalink
fix: stop accidentally deleting files when moving nested profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHedmad committed Nov 26, 2024
1 parent 9d781c3 commit bbc171c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,7 @@ impl<T: Into<PathBuf> + Hash + std::cmp::Eq + Clone + std::fmt::Debug> Profile<T
FileMover::from((
&self.root_dir.join(&original),
push_fragment(
self.temp_dir
.join(original.strip_prefix(&self.root_dir).unwrap()),
self.temp_dir.join(original.file_name().unwrap()),
&format!(".{}", get_salt(5)),
),
)),
Expand Down

0 comments on commit bbc171c

Please sign in to comment.