diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-06-15 18:52:37 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-06-15 18:52:37 -0700 |
commit | 0ddc8a54ee0bd8357d0546ed5e0057115ce8afec (patch) | |
tree | 65f1b34eccc3deed068310a1a98945f1e0ce1540 /rpath.sh | |
parent | 4129397cf3421b3e8afec0402241f696fd613576 (diff) | |
download | rbpm-0ddc8a54ee0bd8357d0546ed5e0057115ce8afec.tar.gz rbpm-0ddc8a54ee0bd8357d0546ed5e0057115ce8afec.tar.xz |
Use highest matching version.
Diffstat (limited to 'rpath.sh')
-rwxr-xr-x | rpath.sh | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -120,15 +120,15 @@ rpath_set() { for dir in "${dirs[@]}"; do if [[ "${dir##*/}" == *"${1}"* ]]; then - _clear - _add "${dir}" - _export - - return + match="${dir}" fi done - _die 'no matching ruby found.' + [[ -n "${match}" ]] || _die 'no matching ruby found.' + + _clear + _add "${match}" + _export } rpath_clear() { |