Added a -type f to the find call in stage1 for bug #132180.
[catalyst.git] / targets / stage1 / stage1-controller.sh
index b7b7e9d841602a6d212681c2228dba3ee7d9af4a..0bf2de400e519b0440083a4e8ad51f68d83495aa 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-controller.sh,v 1.12 2006/01/04 19:51:03 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-controller.sh,v 1.13 2006/05/23 20:00:19 wolf31o2 Exp $
 
 . ${clst_sharedir}/targets/support/functions.sh
 
@@ -60,8 +60,8 @@ case $1 in
                find -iname "*.py[co]" -exec rm -f {} \;
                # Cleanup all .a files except libgcc.a, *_nonshared.a and
                # /usr/lib/portage/bin/*.a
-               find -iname "*.a" | grep -v 'libgcc.a' | grep -v 'nonshared.a' | \
-                       grep -v '/usr/lib/portage/bin/' | grep -v 'libgcc_eh.a' | xargs \
+               find -type f -iname "*.a" | grep -v 'libgcc.a' | grep -v 'nonshared.a' \
+                       grep -v '/usr/lib/portage/bin/' | grep -v 'libgcc_eh.a' | xargs \
                        rm -f
        ;;
        *)