Files
tools/bin/tools-git-update
T
2026-10-08 15:40:10 +02:00

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