diff options
author | Daniël de Kok <me@danieldk.eu> | 2020-10-18 14:00:05 +0200 |
---|---|---|
committer | Daniël de Kok <me@danieldk.eu> | 2020-10-18 14:00:05 +0200 |
commit | 48a20e93378c87a9f71ff1ded28623e4a4082322 (patch) | |
tree | 4ee3081ba76d06bc87fab234fbb303d29267f24d /pkgs/build-support/setup-hooks/validate-pkg-config.sh | |
parent | 7c4305be84ae74499e1ddd9b8e97bcaaf6da0f7d (diff) |
validatePkgConfig: fix variable scope
validatePkgConfig failed due to a wrong variable scope, as reported in
issue #100834. This change corrects the variable scoping.
Diffstat (limited to '')
-rw-r--r-- | pkgs/build-support/setup-hooks/validate-pkg-config.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/build-support/setup-hooks/validate-pkg-config.sh b/pkgs/build-support/setup-hooks/validate-pkg-config.sh index 54fc9cc122ca..ada1b56760d6 100644 --- a/pkgs/build-support/setup-hooks/validate-pkg-config.sh +++ b/pkgs/build-support/setup-hooks/validate-pkg-config.sh @@ -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 |