angstrom feed sorter: replace find + grep with just find
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 7 Oct 2010 09:34:15 +0000 (13:34 +0400)
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 12 Nov 2010 10:06:49 +0000 (13:06 +0300)
This removes any requirements for the order of archiectures to be
sorted.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
contrib/angstrom/sort.sh

index 3364ac3..1d3c622 100755 (executable)
@@ -108,7 +108,7 @@ case "$arch" in
                        machines="colinux" ;;
 esac
 
-if [ $(find . -name  "*.ipk"| grep $arch | wc -l) -gt 0 ] ; then
+if [ $(find . -name  "*_$arch.ipk"| wc -l) -gt 0 ] ; then
        export SORTFEED=1
 else
        export SORTFEED=0