Use the same convention for test as elsewhere in the code

This commit is contained in:
nojhan 2013-07-07 15:22:19 +02:00
parent 9d96a82c80
commit 0a161a6d3f

View File

@ -1200,10 +1200,11 @@ _lp_temp_sensors() {
temperature=$(($temperature+$i)) temperature=$(($temperature+$i))
count=$(($count+1)) count=$(($count+1))
done done
if test $count -eq 0; then if [[ $count -ne 0 ]] ; then
echo -ne "$(($temperature/$count))"
else
exit exit
fi fi
echo -ne "$(($temperature/$count))"
} }
# Will set _lp_temp_function so the temperature monitoring feature use an # Will set _lp_temp_function so the temperature monitoring feature use an