In install_mask(), discard stderr messages from the 'find' command
authorZac Medico <zmedico@gentoo.org>
Tue, 6 May 2008 20:26:05 +0000 (20:26 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 6 May 2008 20:26:05 +0000 (20:26 -0000)
since some tokens from INSTALL_MASK can trigger lots of warnings
and errors that are irrelevant for our purposes.

svn path=/main/trunk/; revision=10220

bin/misc-functions.sh

index 59fa51e7078644ab619f5b6b104bd064ec741137..58507893c3084b5870f8cf46422e0d545a01fa15 100755 (executable)
@@ -414,7 +414,7 @@ install_mask() {
 
                # we also need to handle globs (*.a, *.h, etc)
                find "${root}" \( -path "${no_inst}" -or -name "${no_inst}" \) \
-                       -exec rm -fR {} \; >/dev/null
+                       -exec rm -fR {} \; >/dev/null 2>&1
        done
        # set everything back the way we found it
        set +o noglob