Use find -path instead of -name for compatibility with both gnu and bsd userlands...
authorZac Medico <zmedico@gentoo.org>
Sun, 12 Mar 2006 13:30:12 +0000 (13:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 12 Mar 2006 13:30:12 +0000 (13:30 -0000)
svn path=/main/trunk/; revision=2863

bin/misc-functions.sh

index f291e036b3a99e96ec6d4fe5b0f64de2c2964fb7..8535a967987ae3bec2670e7f54e72794cfae8813 100644 (file)
@@ -290,7 +290,7 @@ install_mask() {
                rm -Rf ${root}/${no_inst} >&/dev/null
 
                # we also need to handle globs (*.a, *.h, etc)
-               find "${root}" -name ${no_inst} -exec rm -fR {} \; >/dev/null
+               find "${root}" -path ${no_inst} -exec rm -fR {} \; >/dev/null
        done
        # set everything back the way we found it
        set +o noglob