Merge pull request #4787 from reitermarkus/fix-update

Only migrate cache files containing `--`.
This commit is contained in:
Markus Reiter 2018-09-01 11:19:15 +02:00 committed by GitHub
commit 0853fe14b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,9 @@ module UpdateMigrator
path.children
.reject(&:symlink?)
.select(&:file?)
.map { |child| child.basename.to_s.sub(/\-\-.*/, "") }
.map { |child| child.basename.to_s }
.select { |basename| basename.include?("--") }
.map { |basename| basename.sub(/\-\-.*/, "") }
.uniq
else
[]