aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhanghongbo <hongbo.zhang@linaro.org>2012-08-17 19:06:33 +0800
committerhongbo.zhang <hongbo.zhang@linaro.com>2012-11-28 17:11:49 +0800
commit13a161c5b349977c505cfab5ec346d3adcdfcd07 (patch)
tree45955f2ff3f1ba7a73305232578e3011f11a4b58
parentea9b7f31710abcabd44fb8deeea77d013de4a8a8 (diff)
cpufreq bug fix: variables should be surrouded by quotation marks.
Signed-off-by: hongbo.zhang <hongbo.zhang@linaro.com>
-rwxr-xr-xcpufreq/cpufreq_04.sh2
-rwxr-xr-xcpufreq/cpufreq_05.sh6
-rwxr-xr-xcpufreq/cpufreq_06.sh2
-rwxr-xr-xcpufreq/cpufreq_07.sh2
-rwxr-xr-xcpufreq/cpufreq_08.sh2
-rwxr-xr-xcpufreq/cpufreq_09.sh2
6 files changed, 8 insertions, 8 deletions
diff --git a/cpufreq/cpufreq_04.sh b/cpufreq/cpufreq_04.sh
index 5b1c508..f044164 100755
--- a/cpufreq/cpufreq_04.sh
+++ b/cpufreq/cpufreq_04.sh
@@ -52,7 +52,7 @@ if [ $(id -u) != 0 ]; then
fi
supported=$(cat $CPU_PATH/cpu0/cpufreq/scaling_available_governors | grep "userspace")
-if [ -z $supported ]; then
+if [ -z "$supported" ]; then
log_skip "userspace not supported"
else
for_each_cpu for_each_frequency check_frequency || exit 1
diff --git a/cpufreq/cpufreq_05.sh b/cpufreq/cpufreq_05.sh
index ae6b670..f4cc997 100755
--- a/cpufreq/cpufreq_05.sh
+++ b/cpufreq/cpufreq_05.sh
@@ -52,7 +52,7 @@ switch_userspace() {
}
supported=$(cat $CPU_PATH/cpu0/cpufreq/scaling_available_governors | grep "ondemand")
-if [ -z $supported ]; then
+if [ -z "$supported" ]; then
log_skip "ondemand not supported"
else
for cpu in $(ls $CPU_PATH | grep "cpu[0-9].*"); do
@@ -62,7 +62,7 @@ else
fi
supported=$(cat $CPU_PATH/cpu0/cpufreq/scaling_available_governors | grep "conservative")
-if [ -z $supported ]; then
+if [ -z "$supported" ]; then
log_skip "conservative not supported"
else
for cpu in $(ls $CPU_PATH | grep "cpu[0-9].*"); do
@@ -72,7 +72,7 @@ else
fi
supported=$(cat $CPU_PATH/cpu0/cpufreq/scaling_available_governors | grep "userspace")
-if [ -z $supported ]; then
+if [ -z "$supported" ]; then
log_skip "userspace not supported"
else
for cpu in $(ls $CPU_PATH | grep "cpu[0-9].*"); do
diff --git a/cpufreq/cpufreq_06.sh b/cpufreq/cpufreq_06.sh
index 215bf61..cb45e4b 100755
--- a/cpufreq/cpufreq_06.sh
+++ b/cpufreq/cpufreq_06.sh
@@ -107,7 +107,7 @@ if [ $(id -u) != 0 ]; then
fi
supported=$(cat $CPU_PATH/cpu0/cpufreq/scaling_available_governors | grep "userspace")
-if [ -z $supported ]; then
+if [ -z "$supported" ]; then
log_skip "userspace not supported"
exit 0
fi
diff --git a/cpufreq/cpufreq_07.sh b/cpufreq/cpufreq_07.sh
index 539e2d1..354ed46 100755
--- a/cpufreq/cpufreq_07.sh
+++ b/cpufreq/cpufreq_07.sh
@@ -83,7 +83,7 @@ if [ $(id -u) != 0 ]; then
fi
supported=$(cat $CPU_PATH/cpu0/cpufreq/scaling_available_governors | grep "ondemand")
-if [ -z $supported ]; then
+if [ -z "$supported" ]; then
log_skip "ondemand not supported"
exit 0
fi
diff --git a/cpufreq/cpufreq_08.sh b/cpufreq/cpufreq_08.sh
index e881f72..328b4f5 100755
--- a/cpufreq/cpufreq_08.sh
+++ b/cpufreq/cpufreq_08.sh
@@ -72,7 +72,7 @@ if [ $(id -u) != 0 ]; then
fi
supported=$(cat $CPU_PATH/cpu0/cpufreq/scaling_available_governors | grep "userspace")
-if [ -z $supported ]; then
+if [ -z "$supported" ]; then
log_skip "userspace not supported"
exit 0
fi
diff --git a/cpufreq/cpufreq_09.sh b/cpufreq/cpufreq_09.sh
index fc700c2..c1d1a7b 100755
--- a/cpufreq/cpufreq_09.sh
+++ b/cpufreq/cpufreq_09.sh
@@ -68,7 +68,7 @@ if [ $(id -u) != 0 ]; then
fi
supported=$(cat $CPU_PATH/cpu0/cpufreq/scaling_available_governors | grep "powersave")
-if [ -z $supported ]; then
+if [ -z "$supported" ]; then
log_skip "powersave not supported"
exit 0
fi