script/initialize-environment in penchant-0.1.1 vs script/initialize-environment in penchant-0.1.2
- old
+ new
@@ -3,10 +3,10 @@
if File.file?('Gemfile.erb')
pwd = Dir.pwd
Dir.chdir '..' do
File.readlines(File.join(pwd, 'Gemfile.erb')).find_all { |line| line[':git'] }.each do |line|
- repo = line[%r{:git => (['"])(.*)\1}, 2]
+ repo = line[%r{:git => (['"])([^'"]+)\1}, 2]
puts "Installing #{repo}"
system %{git clone #{repo}}
end
end