Created
January 7, 2017 20:30
-
-
Save shirishp/73b454eddb4946aab6c99efe602200ca to your computer and use it in GitHub Desktop.
Each
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
Dir.entries('./').select do |entry| | |
next unless File.directory? File.join('./', entry, '.git') | |
if File.directory? File.join('./', entry) | |
puts "Repo #{entry}..." | |
cmd = ARGV.join(' ') | |
Dir.chdir(entry) { | |
puts `#{cmd}` | |
} | |
puts "*******************" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment