cm: Fix bootanimation sorting
Change-Id: I7d45f6790406db826fbb822fedb4484427b18c31
diff --git a/config/common.mk b/config/common.mk
index 52e72db..00a536c 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -10,8 +10,7 @@
fi )
# get a sorted list of the sizes
-bootanimation_sizes := $(subst .zip,, $(shell ls vendor/cm/prebuilt/common/bootanimation))
-bootanimation_sizes := $(shell echo -e $(subst "$(space)",'\n',"$(bootanimation_sizes)") | sort -rn)
+bootanimation_sizes := $(subst .zip,,$(shell ls -1 vendor/cm/prebuilt/common/bootanimation | sort -rn))
# find the appropriate size and set
define check_and_set_bootanimation