update-report: recreate migration_attempted_file.

If the deletion of `HOMEBREW_CACHE` fails then the
`.migration_attempted` file will have still been deleted so ensure it is
recreated.
This commit is contained in:
Mike McQuaid 2016-06-01 12:47:56 +01:00
parent 9085e67e80
commit 8108106cf9

View File

@ -149,6 +149,7 @@ module Homebrew
else
ohai "Deleting #{legacy_cache}..."
FileUtils.rm_rf legacy_cache
FileUtils.touch migration_attempted_file if legacy_cache.exist?
end
end
end