diff --git a/ruby_gem_install.sh b/ruby_gem_install.sh index 38f49eea..f5c3973f 100755 --- a/ruby_gem_install.sh +++ b/ruby_gem_install.sh @@ -26,6 +26,10 @@ srcdir="$(dirname "$0")" gem="${GEM:-gem}" opts="${GEM_OPTS:-}" +if type -P "$gem" &>/dev/null; then + gem="$(type -P "$gem")" +fi + usage(){ echo "Installs Ruby Gems, taking in to account library paths" echo