Merge branch 'fix-copy-firmware' into 'main'

copy-firmware.sh: Run check_whence.py only if in a git repo

See merge request kernel-firmware/linux-firmware!360
This commit is contained in:
Mario Limonciello 2024-11-08 16:48:56 +00:00
commit ad74054cd5
1 changed files with 4 additions and 2 deletions

View File

@ -65,8 +65,10 @@ if test -d "$destdir"; then
find "$destdir" -type d -empty >/dev/null || warn "destination folder is not empty."
fi
$verbose "Checking that WHENCE file is formatted properly"
./check_whence.py || err "check_whence.py has detected errors."
if test -e .git/config; then
$verbose "Checking that WHENCE file is formatted properly"
./check_whence.py || err "check_whence.py has detected errors."
fi
# shellcheck disable=SC2162 # file/folder name can include escaped symbols
grep -E '^(RawFile|File):' WHENCE | sed -E -e 's/^(RawFile|File): */\1 /;s/"//g' | while read k f; do