diff options
| author | BrewTestBot | 2015-08-03 13:09:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-08-03 13:22:35 +0100 |
| commit | 13d544e11e92ba8ea3788723432046f8dfe4adf9 (patch) | |
| tree | e6da18436d9ce956e6fbe80e3185c67cf3b58808 /Library/ENV/scm/git | |
| parent | 3b68215be793774fafd9ce124a2065f5968f50e5 (diff) | |
| download | brew-13d544e11e92ba8ea3788723432046f8dfe4adf9.tar.bz2 | |
Core files style updates.
Closes Homebrew/homebrew#42354.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/ENV/scm/git')
| -rwxr-xr-x | Library/ENV/scm/git | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/ENV/scm/git b/Library/ENV/scm/git index 4316436e6..06a04b7f1 100755 --- a/Library/ENV/scm/git +++ b/Library/ENV/scm/git @@ -5,7 +5,7 @@ F = File.basename(__FILE__).freeze D = File.expand_path(File.dirname(__FILE__)).freeze -def exec *args +def exec(*args) # prevent fork-bombs arg0 = args.first return if arg0 =~ /^#{F}/i || File.expand_path(arg0) == File.expand_path(__FILE__) @@ -13,9 +13,9 @@ def exec *args end case F.downcase - when 'git' then %W{HOMEBREW_GIT GIT} - when 'svn' then %W{HOMEBREW_SVN} - else [] +when "git" then %W[HOMEBREW_GIT GIT] +when "svn" then %W[HOMEBREW_SVN] +else [] end.each do |key| exec ENV[key], *ARGV if ENV[key] and File.executable? ENV[key] end |
