mirror of
https://github.com/safing/portmaster
synced 2025-04-13 23:49:11 +00:00
[updates] fix: skip PurgeDirectory during backup
This commit is contained in:
parent
2a85a4bfd0
commit
b83b2901c8
1 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,10 @@ func (u *Updater) upgradeMoveFiles(downloader *Downloader) error {
|
|||
if slices.Contains(u.cfg.Ignore, file.Name()) {
|
||||
continue
|
||||
}
|
||||
// ignore PurgeDirectory itself
|
||||
if strings.EqualFold(u.cfg.PurgeDirectory, filepath.Join(u.cfg.Directory, file.Name())) {
|
||||
continue
|
||||
}
|
||||
|
||||
// Otherwise, move file to purge dir.
|
||||
src := filepath.Join(u.cfg.Directory, file.Name())
|
||||
|
|
Loading…
Add table
Reference in a new issue