Bash doesn't do lazy evaluation on test-like expressions, so don't

assume it does (#2292).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5100 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-01-08 20:10:52 +00:00
1 parent 936c5f66c2
commit e6c94c66ed
1 file changed
+5 -2
+5 -2
View File
@@ -115,9 +115,12 @@ function is_pwm_auto()
if [ -n "$SYSFS" ]
then
ENABLE=${1}_enable
if [ -f $ENABLE -a "`cat $ENABLE`" -gt 1 ]
if [ -f $ENABLE ]
then
return 0
if [ "`cat $ENABLE`" -gt 1 ]
then
return 0
fi
fi
fi