You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2019/12/04 18:40:35 UTC
[whimsy] branch master updated: sudo not recommended/required for
rbenv/RVM/brew installed rubies
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 495e9b5 sudo not recommended/required for rbenv/RVM/brew installed rubies
495e9b5 is described below
commit 495e9b5ba05c7817f38c65e6621446358f47543f
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Dec 4 13:39:58 2019 -0500
sudo not recommended/required for rbenv/RVM/brew installed rubies
---
config/setupmymac | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/config/setupmymac b/config/setupmymac
index d7b23a1..d66feb7 100755
--- a/config/setupmymac
+++ b/config/setupmymac
@@ -340,9 +340,18 @@ end
### Install bundler
if `which bundle`.empty?
- sudo {run 'gem install bundler'}
+ if `which gem`.chomp == '/usr/bin/gem'
+ sudo {run 'gem install bundler'}
+ else
+ run 'gem install bundler'
+ end
elsif force[:bundler]
- sudo {run 'gem update bundler'}
+ if `which gem`.chomp == '/usr/bin/gem'
+ sudo {run 'gem update bundler'}
+ else
+ run 'gem update bundler'
+ end
+
ARGS.push '--no-bundle'
end