update-license-data: modify arguments when calling methods
This commit is contained in:
parent
02bc870e91
commit
5b3ac1fcb2
@ -30,8 +30,8 @@ module Homebrew
|
|||||||
def update_license_data
|
def update_license_data
|
||||||
update_license_data_args.parse
|
update_license_data_args.parse
|
||||||
ohai "Updating SPDX license data..."
|
ohai "Updating SPDX license data..."
|
||||||
spdx_download_result = curl(SPDX_DATA_URL)
|
spdx_download_result = curl(SPDX_DATA_URL, print_stdout: false)
|
||||||
SPDX_PATH.write(spdx_download_result.stdout, true)
|
SPDX_PATH.write(spdx_download_result.stdout, overwrite: true)
|
||||||
return unless args.fail_if_changed?
|
return unless args.fail_if_changed?
|
||||||
|
|
||||||
system("git diff --stat --exit-code #{SPDX_PATH}")
|
system("git diff --stat --exit-code #{SPDX_PATH}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user