Merge pull request #20168 from tyuwags/json-update-migrator

updating json with `cask/migrator`
This commit is contained in:
Mike McQuaid 2025-06-25 14:41:41 +00:00 committed by GitHub
commit 9fa50e5e12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,7 @@ module Cask
when ".json"
json = JSON.parse(path.read)
json["token"] = new_token
json["old_tokens"] = [old_token, *json["old_tokens"]].compact.uniq
path.atomic_write json.to_json
end
end