Remove Kleowrap and Gpgwrap
[gpg4win.git] / src / pkg-config
index 4ca7253..d5d0135 100755 (executable)
@@ -43,8 +43,9 @@ then
 #    echo "PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR" >&2
 #    echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >&2
 #    echo "OKAY" >&2;
-    exit 0;
+    # See question 11 in comp.unix.shell FAQ.
+    exit ${PIPESTATUS[0]};
 else
-    echo "pkg-config failed!" >&2 
+    echo "pkg-config pipe failed!" >&2 
     exit 1
 fi