version-independent loading of the ruby bin directory

This commit is contained in:
Rodolphe Breard 2013-04-28 11:14:15 +02:00
parent 56d05f5c2a
commit b2cc222176

View file

@ -18,8 +18,12 @@ export DEBEMAIL="rodolphe.breard@uraniborg.net"
export DEBFULLNAME="$USER_NICKNAME" export DEBFULLNAME="$USER_NICKNAME"
# Ruby bin directory # Ruby bin directory
if [ -d "$HOME/.gem/ruby/2.0.0/bin" ]; then if [ -d "$HOME/.gem/ruby" ]; then
export PATH="$PATH:$HOME/.gem/ruby/2.0.0/bin" for file in $HOME/.gem/ruby/*; do
if [ -d "$file" -a -d "$file/bin" ]; then
export PATH="$PATH:$file/bin"
fi
done
fi fi
# OS # OS