Skip to content

Commit

Permalink
Merge pull request #30 from andmpel/fix-gem
Browse files Browse the repository at this point in the history
Disable Gem on Builtin Gem
  • Loading branch information
andmpel authored Feb 8, 2025
2 parents af31050 + 150523a commit 30f8200
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions update-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ update_vscode() {
update_gem() {
println "Updating Gems"

if ! check_command gem; then
return
# Get the path of the `gem` command
GEM_PATH=$(which gem)

# Check if the path does not match the expected path
if [ "$GEM_PATH" = "/usr/local/opt/ruby/bin/gem" ]; then
print_err "gem is not installed."
return
fi

gem update --user-install && gem cleanup --user-install
Expand Down

0 comments on commit 30f8200

Please sign in to comment.