Skip to content

Instantly share code, notes, and snippets.

@corporealfunk
Created May 7, 2012 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save corporealfunk/2629329 to your computer and use it in GitHub Desktop.
Save corporealfunk/2629329 to your computer and use it in GitHub Desktop.
Fix Spork 0.9.0+ permissions problems in system-wide RVM installs
#!/bin/bash
sudo find /usr/local/rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0 -name "*.rb" -exec chmod go+r {} \;
sudo find /usr/local/rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0 -name "spork" -exec chmod g+r {} \;
sudo find /usr/local/rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0 -type d -exec chmod go+rx {} \;
sudo chmod -R g+rw /usr/local/rvm/gems/ruby-1.9.2-p290/gems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment