Skip to content

Instantly share code, notes, and snippets.

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