update-license-data: modify arguments when calling methods

This commit is contained in:
lionellloh 2020-06-30 01:14:05 +08:00
parent 02bc870e91
commit 5b3ac1fcb2

View File

@ -30,8 +30,8 @@ module Homebrew
def update_license_data
update_license_data_args.parse
ohai "Updating SPDX license data..."
spdx_download_result = curl(SPDX_DATA_URL)
SPDX_PATH.write(spdx_download_result.stdout, true)
spdx_download_result = curl(SPDX_DATA_URL, print_stdout: false)
SPDX_PATH.write(spdx_download_result.stdout, overwrite: true)
return unless args.fail_if_changed?
system("git diff --stat --exit-code #{SPDX_PATH}")