Skip to content

Commit

Permalink
Update timesyncd.go (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Oct 21, 2024
1 parent f16f016 commit 786d50b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/plugins/timesyncd.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ func Timesyncd(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) e
}

for k, v := range s.TimeSyncd {
if v == "" {
cfg.Section("Time").Key(k).SetValue("\"\"")
} else {
cfg.Section("Time").Key(k).SetValue(v)
}
cfg.Section("Time").Key(k).SetValue(v)
}

cfg.SaveTo(path)
Expand Down

0 comments on commit 786d50b

Please sign in to comment.