Skip to content

Commit

Permalink
fix nh clean .. --nogcroots
Browse files Browse the repository at this point in the history
Closes #84
  • Loading branch information
viperML committed Apr 18, 2024
1 parent 5b8d936 commit 852205d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl NHRunnable for interface::CleanMode {
.map(Regex::new)
.collect::<Result<Vec<_>, regex::Error>>()?;

if !is_profile_clean {
if !is_profile_clean && !args.nogcroots {
for elem in PathBuf::from("/nix/var/nix/gcroots/auto")
.read_dir()
.wrap_err("Reading auto gcroots dir")?
Expand Down

0 comments on commit 852205d

Please sign in to comment.