diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-03-23 20:37:13 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-03-23 20:37:13 +0000 |
commit | 9f696bc989ad79ab968b6427290b033ac3a775fa (patch) | |
tree | 2d44f3f4a48587e41f8bda25c32bc77b9d98549a | |
parent | bf30d900ba2b09f12ca38871f31475ef21934850 (diff) | |
download | rpm-setup-9f696bc989ad79ab968b6427290b033ac3a775fa.tar rpm-setup-9f696bc989ad79ab968b6427290b033ac3a775fa.tar.gz rpm-setup-9f696bc989ad79ab968b6427290b033ac3a775fa.tar.bz2 rpm-setup-9f696bc989ad79ab968b6427290b033ac3a775fa.tar.xz rpm-setup-9f696bc989ad79ab968b6427290b033ac3a775fa.zip |
check exit value of pkg-config
-rwxr-xr-x | pkgconfigdeps.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgconfigdeps.sh b/pkgconfigdeps.sh index e5d2843..5db0eba 100755 --- a/pkgconfigdeps.sh +++ b/pkgconfigdeps.sh @@ -29,7 +29,7 @@ case $1 in test -z "$v" && test -n "$r" && echo "Error with pkgconfig($n)" >&2 && exit 1 echo "pkgconfig($n)" "$r" "$v" done - test $? -ne 0 && exit 1 + test ${PIPESTATUS[0]} -ne 0 && exit 1 # The dependency on the pkgconfig package itself. ;; -R|--requires) @@ -44,7 +44,7 @@ case $1 in test -z "$v" && test -n "$r" && echo "Error with pkgconfig($n)" >&2 && exit 1 echo "pkgconfig($n)" "$r" "$v" done - test $? -ne 0 && exit 1 + test ${PIPESTATUS[0]} -ne 0 && exit 1 ;; esac exit 0 |