Skip to content

Instantly share code, notes, and snippets.

@morganp
Created June 4, 2010 09:10
Show Gist options
  • Save morganp/425185 to your computer and use it in GitHub Desktop.
Save morganp/425185 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
## Command Line tools can now be portable while working on static folders.
if ENV['MEDIA_FOLDER'].nil?
puts "Add this to ~/.bashrc"
puts "Or Windows variables"
puts "export MEDIA_FOLDER='[\"/user/name/Movies\", \"/user/name/TV Shows\"]'"
else
puts ENV['MEDIA_FOLDER']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment