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

svn path=/main/branches/2.1.2/; revision=10221

bin/misc-functions.sh

index ae27268cfdbc985292281059af292fbd1ddabf43..ed7290d5fc29b96af72d45a2b1735f7c015ebc5b 100755 (executable)
@@ -378,7 +378,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