Bash: fix $PATH construction.

Replace global $PATH to ensure correct order.
This commit is contained in:
Artem Sapegin 2013-10-29 13:03:07 +04:00
parent 3a5913d9a0
commit 5883f46330

View File

@ -38,7 +38,8 @@ function _prepend_path() {
fi fi
} }
# Extend $PATH # Construct $PATH
PATH='/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'
[ -d /usr/local/bin ] && _prepend_path "/usr/local/bin" [ -d /usr/local/bin ] && _prepend_path "/usr/local/bin"
[ -d /usr/local/share/npm/bin ] && _prepend_path "/usr/local/share/npm/bin" [ -d /usr/local/share/npm/bin ] && _prepend_path "/usr/local/share/npm/bin"
[ -d /usr/local/opt/ruby/bin ] && _prepend_path "/usr/local/opt/ruby/bin" [ -d /usr/local/opt/ruby/bin ] && _prepend_path "/usr/local/opt/ruby/bin"