diff options
author | Lisa Nguyen <lisa.nguyen@linaro.org> | 2016-01-22 14:17:36 -0800 |
---|---|---|
committer | Lisa Nguyen <lisa.nguyen@linaro.org> | 2016-01-22 15:35:52 -0800 |
commit | dd6d1ea1661c2f410a4d643b5cb928d3fa092e8d (patch) | |
tree | 3a392d364c851d748b1a353f14b337b421dfe80a | |
parent | 944fd132e34276badebc277094d1cc4d709f8e41 (diff) |
cputopology_04: Remove -1 option from ls command
Android does not recognize the -1 option when running
ls to check for directory contents.
Without this fix, these errors will show up:
ls: Unknown option '-1'. Aborting.
ls: Unknown option '-1'. Aborting
Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
-rwxr-xr-x | cputopology/cputopology_04.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cputopology/cputopology_04.sh b/cputopology/cputopology_04.sh index e728c3f..41a6ad3 100755 --- a/cputopology/cputopology_04.sh +++ b/cputopology/cputopology_04.sh @@ -121,9 +121,9 @@ verify_capacity() fi calc_mid_capacity - dt_cpus=$(ls -1 /sys/firmware/devicetree/base/cpus | egrep "cpu@.{1,2}$") + dt_cpus=$(ls /sys/firmware/devicetree/base/cpus | egrep "cpu@.{1,2}$") verify_cpu_capacity - dt_cpus=$(ls -1 /sys/firmware/devicetree/base/cpus | egrep "cpu@.{3,4}$") + dt_cpus=$(ls /sys/firmware/devicetree/base/cpus | egrep "cpu@.{3,4}$") verify_cpu_capacity } |