17 lines
359 B
Ruby
Executable File
17 lines
359 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
Dir.children(Dir.pwd).sort.each do |entry|
|
|
path = File.join(Dir.pwd, entry)
|
|
|
|
next unless File.directory?(path)
|
|
next unless File.exist?(File.join(path, ".git"))
|
|
|
|
puts "\n==> #{entry}"
|
|
|
|
Dir.chdir(path) do
|
|
unless system("git", "pull", "--ff-only")
|
|
warn "Attention : #{entry} n'a pas été mis à jour."
|
|
end
|
|
end
|
|
end
|