mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-01 06:45:24 +00:00
Ensure /usr/local/sbin is in runner's path.
Fix /sbin too. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2227 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -33,8 +33,12 @@ use POSIX;
|
|||||||
|
|
||||||
# Just in case a root user doesn't have /sbin in his/her path for some reason
|
# Just in case a root user doesn't have /sbin in his/her path for some reason
|
||||||
# (was seen once)
|
# (was seen once)
|
||||||
$ENV{PATH} .= '/sbin:'
|
$ENV{PATH} = '/sbin:'.$ENV{PATH}
|
||||||
unless $ENV{PATH} =~ m,(^|:)/sbin/?(:|$),;
|
unless $ENV{PATH} =~ m,(^|:)/sbin/?(:|$),;
|
||||||
|
# Same for /usr/local/sbin since we need i2cdetect which is installed there
|
||||||
|
# by default (reported by Lennard Klein)
|
||||||
|
$ENV{PATH} = '/usr/local/sbin:'.$ENV{PATH}
|
||||||
|
unless $ENV{PATH} =~ m,(^|:)/usr/local/sbin/?(:|$),;
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# CONSTANT DECLARATIONS #
|
# CONSTANT DECLARATIONS #
|
||||||
|
Reference in New Issue
Block a user