On Friday 05 September 2014 11:54 AM, Lisa Nguyen wrote:
Resolve the "ls: Unknown option '-1'" error in the Android shell
by removing -1v option from ls command used to find number of
cpus on a platform.
Reported-by: Naresh Kamboju <[email protected]>
Signed-off-by: Lisa Nguyen <[email protected]>
---
include/functions.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/functions.sh b/include/functions.sh
index 7a113b6..74b2294 100644
--- a/include/functions.sh
+++ b/include/functions.sh
@@ -30,7 +30,7 @@ TEST_NAME=$(basename ${0%.sh})
PREFIX=$TEST_NAME
INC=0
CPU=
-cpus=$(ls -1v $CPU_PATH | grep "cpu[0-9].*")
+cpus=$(ls $CPU_PATH | grep "cpu[0-9].*")
pass_count=0
fail_count=0
skip_count=0
Acked-by: Sanjay Singh Rawat<[email protected]>
--
sanjay
_______________________________________________
linaro-dev mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-dev