mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
Fail if generated JSON file cannot be read (#6076)
To avoid issues as seen in 2.5.1 release where an invalid JSON was published for a few hours, fail the board script if JQ can't parse the generated output file.
This commit is contained in:
parent
9b8d4cca52
commit
625c3a62c4
@ -158,6 +158,10 @@ set +e
|
|||||||
# Merge the old and new, then drop any obsolete package versions
|
# Merge the old and new, then drop any obsolete package versions
|
||||||
python ../../merge_packages.py $new_json $old_json | python ../../drop_versions.py - platforms 1.6.5-947-g39819f0 2.5.0-beta1 2.5.0-beta2 2.5.0-beta3 2.4.0-rc1 2.4.0-rc2 >tmp && mv tmp $new_json && rm $old_json
|
python ../../merge_packages.py $new_json $old_json | python ../../drop_versions.py - platforms 1.6.5-947-g39819f0 2.5.0-beta1 2.5.0-beta2 2.5.0-beta3 2.4.0-rc1 2.4.0-rc2 >tmp && mv tmp $new_json && rm $old_json
|
||||||
|
|
||||||
|
# Verify the JSON file can be read, fail if it's not OK
|
||||||
|
set -e
|
||||||
|
cat $new_json | jq empty
|
||||||
|
|
||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user