mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-27 12:30:43 +00:00
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:
1 parent
936c5f66c2
commit
e6c94c66ed
1 file changed
+5
-2
+5
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user