From: Ron Lee Date: Tue, 12 Oct 2004 13:16:03 +0000 (+0000) Subject: Don't leak intermediate results of tests for wx2.4 if it is not installed. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8dabd665bd2ee0f8729c3aa03f95264e022c084b?ds=inline Don't leak intermediate results of tests for wx2.4 if it is not installed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wx-config.in b/wx-config.in index 7b314ec627..c87dcf9069 100755 --- a/wx-config.in +++ b/wx-config.in @@ -559,9 +559,9 @@ get_legacy_mask() # Returns a list of configs installed by wx2.4 releases. find_legacy_configs() { - cd "$prefix/bin" 2> /dev/null && \ - ls wx*-2.4-config | grep -v ^wxbase; \ - ls wx*-2.4-config | grep ^wxbase + cd "$prefix/bin" 2> /dev/null && \ + ls wx*-2.4-config 2> /dev/null | grep -v ^wxbase; \ + ls wx*-2.4-config 2> /dev/null | grep ^wxbase } # find_best_legacy_config