diff options
| author | Jack Nagel | 2013-08-19 17:21:13 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-19 17:21:13 -0500 |
| commit | 068ad2b738be86705779c12124431e9a22b868b8 (patch) | |
| tree | 17416f9acbf89899865816b9323c78c3ad525758 /Library/Homebrew/extend/ENV | |
| parent | 8628522ae78d2ff7384e39ec752a00e721bf40d2 (diff) | |
| download | homebrew-068ad2b738be86705779c12124431e9a22b868b8.tar.bz2 | |
Add ENV.append_path
Diffstat (limited to 'Library/Homebrew/extend/ENV')
| -rw-r--r-- | Library/Homebrew/extend/ENV/shared.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb index 74b48d9de..ca92c1574 100644 --- a/Library/Homebrew/extend/ENV/shared.rb +++ b/Library/Homebrew/extend/ENV/shared.rb @@ -35,9 +35,15 @@ module SharedEnvExtension end end end + + def append_path key, path + append key, path, File::PATH_SEPARATOR if File.directory? path + end + def prepend_path key, path prepend key, path, File::PATH_SEPARATOR if File.directory? path end + def remove keys, value Array(keys).each do |key| next unless self[key] |
