Skip to content

Instantly share code, notes, and snippets.

@AlexTalker
Created March 31, 2014 15:08
Show Gist options
  • Save AlexTalker/9894511 to your computer and use it in GitHub Desktop.
Save AlexTalker/9894511 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
def cd(i)
begin
Dir.chdir(i)
rescue
puts "An error happened in cd().Path don't found: #{i}"
false
end
end
ARGV.each { |package|
if cd(package)
system('pwd')
cd('..')
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment