From: "hongbo.zhang" <hongbo.zh...@linaro.com> the greater-than symbol ">" in if state isn't valid and a file named "0" will be created in this case, "-gt" should be used instead.
Signed-off-by: hongbo.zhang <hongbo.zh...@linaro.com> --- include/thermal_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/thermal_functions.sh b/include/thermal_functions.sh index 5b60698..f385ec1 100644 --- a/include/thermal_functions.sh +++ b/include/thermal_functions.sh @@ -42,7 +42,7 @@ check_valid_temp() { local descr="'$zone_name'/'$file' ='$temp_val'" log_begin "checking $descr" - if [ $temp_val > 0 ]; then + if [ $temp_val -gt 0 ]; then log_end "pass" return 0 fi -- 1.8.0 _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev