Guest User

Untitled

a guest
Oct 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2. require 'fileutils'
  3. include FileUtils
  4.  
  5. searchfor = ARGV[0]
  6. until pwd == '/'
  7. if Dir[searchfor].size != 0
  8. puts pwd
  9. exit
  10. else
  11. cd '..'
  12. end
  13. end
Add Comment
Please, Sign In to add comment