pathmunge tests

pull/1950/head
John D Pell 2022-01-18 13:59:45 -08:00 committed by John D Pell
parent 7958fc450a
commit c515f78acb
2 changed files with 4 additions and 2 deletions

View File

@ -29,7 +29,7 @@ _bash-it-gopath-pathmunge() {
while [[ $i -gt 0 ]]; do
i=$((i - 1))
if [[ -n "${paths[i]}" ]]; then
pathmunge "${paths[i]}/bin"
pathmunge "${paths[i]}/bin" || true
fi
done
}

View File

@ -5,7 +5,9 @@ about-plugin 'ruby and rubygems specific functions and settings'
# Make commands installed with 'gem install --user-install' available
# ~/.gem/ruby/${RUBY_VERSION}/bin/
if _command_exists ruby && _command_exists gem; then
pathmunge "$(ruby -e 'print Gem.user_dir')/bin" after
pathmunge "$(ruby -e 'print Gem.user_dir')/bin" after || true
else
_log_warning "Unable to load Ruby plugin as a working 'ruby', or 'gem', was not found."
fi
function remove_gem() {