Merge pull request #100964 from danieldk/fix-validate-pkg-config

validatePkgConfig: fix variable scope
This commit is contained in:
John Ericson 2020-10-18 23:33:07 -04:00 committed by GitHub
commit 7929891d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,9 +3,8 @@
fixupOutputHooks+=(_validatePkgConfig)
_validatePkgConfig() {
local bail=0
for pc in $(find "$prefix" -name '*.pc'); do
local bail=0
# Do not fail immediately. It's nice to see all errors when
# there are multiple pkgconfig files.
if ! pkg-config --validate "$pc"; then