We should include local paths
This commit is contained in:
parent
2b1a864bc4
commit
95f8344874
@ -133,9 +133,9 @@ fi
|
|||||||
# This should solve both /sbin and /usr/sbin not present when
|
# This should solve both /sbin and /usr/sbin not present when
|
||||||
# doing 'su -c foo', or for something like: PATH= rcscript start
|
# doing 'su -c foo', or for something like: PATH= rcscript start
|
||||||
case "${PATH}" in
|
case "${PATH}" in
|
||||||
/lib/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin) ;;
|
/lib/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin) ;;
|
||||||
/lib/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:*) ;;
|
/lib/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:*) ;;
|
||||||
*) export PATH="/lib/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:${PATH}" ;;
|
*) export PATH="/lib/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:${PATH}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
for arg in "$@" ; do
|
for arg in "$@" ; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user