Skip to content

Commit

Permalink
cli: Pass DryRun the same FS as the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
livingsilver94 committed Dec 15, 2023
1 parent e784c65 commit 094b89c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ func (in *install) installer(rep repo.FS, fileList **os.File) installer.Installe

writ := installer.StepWriter(stepwriter.OS{})
if in.DryRun {
writ = stepwriter.DryRun{}
writ = stepwriter.DryRun{
FS: repo.NewOSFS(in.Directory),
}
}
opts := []installer.Option{
installer.WithCommonVars(envVars()),
Expand Down

0 comments on commit 094b89c

Please sign in to comment.