mirror of
https://github.com/Dasharo/coreboot.git
synced 2026-06-13 10:16:48 -07:00
.github/scripts/capsule-versioning-check.sh: don't fail on new configs
If a new defconfig was added between the previous and current tag, the
script failed with an error like this:
fatal: path 'configs/config.gigabyte_mz33-ar1' exists on disk, but
not in 'msi_ms7e06_v0.9.4'
Change-Id: Ic50dbfb5432cc59ec2ac9e14eb5296e08fe28da2
Upstream-Status: Inappropriate [Dasharo downstream]
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
@@ -75,7 +75,11 @@ fail=0
|
||||
mapfile -t configs < <(grep -l 'EFI_UPDATE_CAPSULE' configs/config.*)
|
||||
for config in "${configs[@]}"; do
|
||||
new_config=$(git show "$new_tag:$config")
|
||||
old_config=$(git show "$old_tag:$config")
|
||||
if ! old_config=$(git show "$old_tag:$config"); then
|
||||
# `git show revision:path` fails if the revision doesn't contain the
|
||||
# path and we also have nothing to do in this case
|
||||
continue
|
||||
fi
|
||||
|
||||
# check that `CONFIG_EDK2_CAPSULES_V2=y` is not added to
|
||||
# `CONFIG_DRIVERS_EFI_UPDATE_CAPSULES=y` without
|
||||
|
||||
Reference in New Issue
Block a user